Forum Replies Created

Page 1 of 9
  • Hamid Rohi-bilverdy

    May 28, 2016 at 6:16 pm in reply to: Beam effect from behind camera?

    Thank you very much Sir D.E
    Your spot on…

    Br HRB

  • Hamid Rohi-bilverdy

    May 27, 2016 at 8:06 pm in reply to: Beam effect from behind camera?

    Anyone??

  • Thanks Dan.

  • Wow…. It did the trick, thank you very much.

    If you would be so kind to explain to me, some curious questions which rised

    1:
    Can I use same technique for buttons such as progressbar, scroller?

    2:
    What is the relationship between the button and this line “(this.value);”?

    3:
    I am very happy with the result, so this question is more, is it possible.
    I noticed, when sliding the controller, the comp window with the layer will reflect my button value AFTER i release the slider button. Is there a way to make it adaptiable, so the opacity value updates real time as i slide the button?

    Thank you very much for all your work for this community and also thanks for having a resourcefull site for beginners like me who have been magically chanted into this world of after effect scripting.

    /Hamid

    P.S All my post on the COW forum regarding extendscript, I have been posting in the after effect expression forum, is there another forum dedicated only for extendscript??

  • Hi Dan

    Thank you for taking your time to answer.

    Yes, as you see in my script of my panel(Thanks to David Torno)

    Here i have my slider button.

    res = "group{orientation: 'row', alignment:['fill','fill'], alignChildren:['fill','fill'],\
    groupOne: Group{orientation:'column' , alignment:['fill','fill'], alignChildren:['fill','fill'],\
    myButton: Button {text: 'My Button'},\
    myStaticTxt: StaticText {text: 'HAMID'},\
    myCheck: Checkbox{text: 'CheckBox'},\
    mySlider: Slider{text: 'Slider', value:30},\
    myClose: Button {text: 'Close'},\

    Here you see i have assigned the group to myPanel and aslo my variable declaration of my button to the slider

    //Assigning a group to myPanel add a res to it
    myPanel.grp = myPanel.add(res);

    //How buttons are assigned to function
    var mySliderBTN = myPanel.grp.groupOne.mySlider;
    var pushBTN = myPanel.grp.groupOne.myButton;

    And here is what i have managed so far for actual pressing the button.

    //THIS IS THE FUNCTION FOR THE SLIDER CONTROL
    mySliderBTN.onChange = function() {

    alert("Slide me");

    }

    So I guess this output exactly the same as the short little function you described.

    But my initial thougts was how do i actually link a parameter to the click of the button.

    I want the slider to work as slider control for a selected layers opacity, going from 0 to 100.

    The basics i know is to set the parameter for the opacity on a layer i could write:

    var curItem = app.project.activeItem;
    var selectedLayer = curItem.selectedLayers;
    var curLayer = curItem.selectedLayers[0];

    var opaCity = curLayer.property("Transform").property("Opacity").setValue(50);

    But to actualy have the slider button dynamicly from 0 to 100, here I am a bit lost…

    /HRB

  • So far I only see infomation about the onChange on page 147, there are no exsamples or guide on how to use that word in a code…

  • Thank you Dan. I did actually not see this document.
    Wow, that is a long PDF.

    I will try to mangle through the jungle and see what I can come up with.

    Thanks again.

    /HRB

  • Hamid Rohi-bilverdy

    June 16, 2015 at 8:31 pm in reply to: Extendscript: Add solids to a comp

    Thank you Dan… Works perfectly.

  • Hamid Rohi-bilverdy

    June 16, 2015 at 7:24 pm in reply to: extendscript: How to import file

    Thank you Walter.

    Works like a charm….

    Yes indeed a very usefull link…

  • Hamid Rohi-bilverdy

    June 15, 2015 at 5:46 pm in reply to: extendscript: How to import file

    Thank you Walter

    2 questions.

    1:
    I am not so good at paths in scripting, so i changed the line ("/absolute/path/to/file.jpg") to ("bird.png") which basiclly did what it was suppose to. I copied a file of bird.png and placed it inside the folder where i have the script running from. What would be the path for the desktop?? And when people sell scripts or download others scripts, how do they make sure that the logo image file is placed the correct place or is there a way to embedd a image??

    2:
    Thank you for taking the time to help me, and thanks for this script, but this code loads an actual file which I determine, what I was looking for was something like when you hit the Ctrl + i on the keyboard and get the import file dialog where to use a random file to import.

    //Hamid

Page 1 of 9

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