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
------------------------------
Original Message:
Sent: 06-30-2022 04:34
From: Svetlin Aleksandrov
Subject: Change Effect properties by Script event in Scene Director
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
------------------------------