Hello,
I've been running into a few problems with xpression API.
I'm attempting to change the values of different objects in a scene, but it seems like I'm not able to affect the scene when it's taken, but I can change some things in the layout view.
Specifically, I'm trying to play out an xpAnimController from excel. Nothing seems to work (but if I place the script in a scene director, it seems to work?)
My code:
Public Sub PlayAnimRange(Name As String, scenename As String, scene As xpScene, RangeStart As Double, RangeEnd As Double)
'Plays an already existing xpAnimController by name
Dim anim As xpAnimController
Engine.GetSceneByName scenename, scene, False
scene.GetAnimControllerByName Name, anim
Engine.DebugMessage anim.Name, mt_Notify
anim.PlayRange RangeStart, RangeEnd
anim.Play
Engine.DebugMessage RangeEnd, mt_Notify
End Sub
This is being called via macro in excel
Debugmessage confirms that I can grab objects, but neither anim.Play or anim.PlayRange seems to do anything.
ditto for scene directors, and updating text.
I know I can accomplish this if I do something like dashboard or datalinq (trigger script via onset text), but I'm attempting to bypass datalinq entirely (we're testing all excel workflows).
It seems like if I call methods outside of certain areas of xPression, they seem to not work? Why is this the case?
Is there no way to affect data directly outside of XPression via script?