Jacob Danell
Forum Replies Created
-
I found the problem… My script exedently created two layers with the same name and there is where the problem happened. Than’s Dan for the help!
-
I tried as you said, chainging ‘ to ” and ” to ‘ so the script applied
selectedLayer.property("position").expression = 'thisComp.layer("' + scriptName + '").transform.position+value';
The code in AE looked like this:
thisComp.layer("nullControll").transform.position+value
and after tried to change the name of the null, the name didn’t change in the expression -
Jacob Danell
February 4, 2014 at 10:58 am in reply to: Placing camera as if rightclick -> New – > CameraI calculated it some and got this number: 1,3888889
So the calculation is: Width*1,3888889
(1920*1,3888889 = 2666,6667 – 4096*1,3888889 = 5688,8889) -
Didn’t work =/ Guessing it’s nothing that is able to be done trough scripting.
-
Perfect! So simple 🙂 Thanks!
-
I’m trying to use your recursive function but I get an error under “k lt K;”. It alerts for the “It” and doesn’t understand it. What exactly does that part in the script do and is it important?
-
hm… I think I’ll be done with the script, now when it’s so close to be done and later if it looks like a big problem, needing to scroll long to see all, I might change it to the way you said now.
Well thanks for all the help! Really helped me going 🙂
One last thing, is there somehow to see if a group has a listbox in it or not?p.s. also when I add a new item to the ListBox I make it checked = false but the checkbox doesn’t show until I click on a button or a box inside the UI.
My code is
function pressAddButton ()
{
var newName = prompt ("What To Do?","What To Do?");
if (newName != null){
var theNewListboxItem = theListBox.add("item", newName);
theNewListboxItem.checked = false;
}
}
-
Ah, sorry if I forgot to write before. I did it in photoshop just to be able to show what I was after instead of trying to explain 😛
Well there you have what I’m trying to create.
First add/remove to add/remove todos,
Second a box with the Todos and a checkbox to check the ones you have done
and Last a DropDown list where you can select witch todo-list you want to see (for multiply jobs)So far, with the ListBox everything is super easy to setup, now it’s only to link UI-groups to the DropDown list so you can show the list you want to see and hide the rest and if possible in some way, make the text start in a new line (but as it looks now it looks dark =/ )
-
Ah too bad =/ I’m using a ListBox with only one column for my lines. What my wish would be is that it “feels” the end of the border, so it changes the line automatically depending the size of the UI.
I’m not good at explaining what I mean so I made this image of how it looks like now and what I’m trying to exceed 🙂 -
Yeah, it’s those UI videos I have seen before so far 🙂 but like you said, this PDF is heaven ^^
The only thing left that is sort of a problem for me is now if you add a new item of text and the text is pretty long you get a scrollbar in the bottom, I would like the text to continue in a new row. I don’t know if it’s possible, i haven’t fount a way so far and google haven’t helped.
