Graphics

 View Only
  • 1.  Change Effect properties by Script event in Scene Director

    Posted 06-30-2022 04:34

    Hello,

    lets say I have a scene director with some Animation controllers and Push effect transition. I need to change the direction of the push effect based on user input date (published text object with "left", "right", "top" and "bottom").

    I tried to change the Direction property with no success...

    dim push as xpEffect
    Scene.GetEffectByName("Push1", push)
    push.Properties.Direction = 0

    Should I use xpEffectStack? I also trid this...

    dim effects as xpEffectStack
    dim push as xpEffect
    effects.GetEffectByName("Push1", push)
    push.Properties.Direction = 0

    Anyone have idea can it be done and how exactly?



    ------------------------------
    Svetlin Aleksandrov
    Motion Graphic Designer
    Euronews Bulgaria
    ------------------------------


  • 2.  RE: Change Effect properties by Script event in Scene Director

    Posted 06-30-2022 04:42
    Also can you add event in scene director via script again based on the user input? Lets say create event at # frame with Action jump to frame or play options "stop" I dont know yet what I will use, but in general can you add event by script or other way?


    ------------------------------
    Svetlin Aleksandrov
    Motion Graphic Designer
    Euronews Bulgaria
    ------------------------------



  • 3.  RE: Change Effect properties by Script event in Scene Director

    Ross Staff
    Posted 06-30-2022 04:43

    I would build scene directors with the animations I want and call them by script rather than effects. 

    eg

    dim sd as xpSceneDirector

     

    scene.GetSceneDirectorByName("Change", sd)

     

    sd.PlayRange(0, 60)

    you can play the other direction like this.

    dim sd as xpSceneDirector

     

    scene.GetSceneDirectorByName("Change", sd)

     

    sd.PlayRange(60, 0)




    also support is things like duration so you could simply put

    sd.PlayRange(0, sd.duration)

    or backwards would be 

    sd.PlayRange(sd.duration, 0)


    there's loads more you can do but this would be better than addressing effects I think. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 4.  RE: Change Effect properties by Script event in Scene Director

    Posted 10-27-2023 17:10

    Hello.
    Did you manege to get the effects properties changed by script?

    I want to change the Pixelate's effect density.

    This is what i have now an d is not working

    dim effects as xpEffectStack
    dim pix as xpEffect

    effects.GetEffectByName("Pixelate1", pix)
    pix.Properties.Density= 100



    ------------------------------
    Juan Pablo Cellanes
    ------------------------------