Forum Replies Created

Page 3 of 4
  • Jacob Danell

    August 22, 2013 at 10:14 am in reply to: Add button and textfield to UI

    I have bin looking for a PDF like this for soooo long! Thank you so much! Read quick about ListBoxes, found EVERYTHING I was looking for 😀

  • Jacob Danell

    August 21, 2013 at 10:10 pm in reply to: Add button and textfield to UI

    Great! Fixed what was needed 🙂
    I’m trying to fix some last parts. I couldn’t get a checkbox to get into the ListBox so instead I added the icons ☐ and ☑ and played around with nameSplit to be able to change the content without changing if the box is checked or not.
    Well the only problem I have now is that I can’t get “onClick” to work on the ListBox. Maybe it’s not possible, the small list of help-items in ExtendScript Toolkit doesn’t show any ListBox alternative (as it does under onDoubleClick) but how can I get that function?

    Edit: Also, how is it possible to create an other clickevent when you click and at the same time hold down ctrl or shift? I would want on single click = check, doubleclick = edit and ctrl/shift+click = remove.

  • Jacob Danell

    August 21, 2013 at 6:43 pm in reply to: Add button and textfield to UI

    Super! Thought so much more difficult than that.
    I have fixed everything so I can add new lines and the size and all… But what’s the code for dubbleclicking? On singleclick I have so the image of a checkbox gets changed to a checked-checkbox, but I would want to be able to edit the text of the item I dubbleclicked on.

  • Jacob Danell

    July 30, 2013 at 3:35 pm in reply to: Position in timeline-row

    idk how I could miss it in the scripting pdf -.- my searchwords most be really bad

  • Jacob Danell

    July 28, 2013 at 11:37 pm in reply to: Naming new comps with higher value every time

    I never got it really working but I figured out how to make the script look into the folder, count the items and give the next created comp one higher value.

    for (var i = 1; i <= app.project.numItems; i++){
    if (app.project.item(i).name == "Comp Cuts" && app.project.item(i) instanceof FolderItem ){
    var cutCompFolder = app.project.item(i);
    }

    var foldernr = cutCompFolder.numItems;

    var tempComp1 = app.project.items.addComp("CutComp_"+foldernr, mainWm1theP, mainHm1theP, maincomPA , maincompDur, maincomFR);
    var tempComp2 = app.project.items.addComp("CutComp_"+(foldernr+1), mainWtheP, mainHtheP, maincomPA , maincompDur, maincomFR);

    The only “problem” (that I can live with but would be nice if it was fixed) is that they are named 1, 2, 3… 8, 9, 10, 11 and so on, so adobe arrange them as 1, 10, 11, 2, 3, 4 and so on. Is there any way to force two digits when creating the number? So it would be 08, 09, 10 and so on.

  • Jacob Danell

    July 26, 2013 at 10:11 pm in reply to: Hide or show GUI parts

    Worked perfect! The effect gave me a shadow where the textbox were before but with the script I already had I made it disapear, but it looked better with the shadow so I kept it that way 🙂
    Thanks!

  • Is there any way for the script to call out a function, for example every 1 second (real time, not playbacktime)? That way if you start the callout when presssing “Add Linear Wipe” and stop it when pressing the “Finish” button

  • I tried to apply it on the top of all but it didn’t work.
    I think the problem is that when I use “onChanging” it will apply a new action that After Effects make an undo to.
    When I used “onChange” a new undo was created every time I undid or wrote a new number, now it changes all the time. Is there anyway to collect all changes into one undo?

  • It was that simple huh…. Sometimes you really feel stupid.
    Well an other problem that came up now is that I have the value linked to a Linear Wipe-effekt too but if I want to undo the whole script process I have like a hundred of undos because of every value-change of the script. I know you use app.beginUndoGroup for these things but when I possition it in the function it doesn’t help, probebly because the function is ran every time the value changes. Where should I possition app.beginUndoGroup for it to work?

  • Jacob Danell

    July 22, 2013 at 11:08 am in reply to: removing decimals doesn’t work

    Worked perfect. Thank you!

Page 3 of 4

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy