OK so I'm struggling here, right now I have this, and when it turns to 0 it animates out, but it won't animate in. If its on 1 before the bug is live then it'll be in however.
If it matters, the scene directors themselves simply change alpha from 0 to 100 for the In, and 100 to 0 for the out.
Dim dir As xpSceneDirector
If text = "0"
scene.GetSceneDirectorByName("AWAY POSSESSION OUT", dir)
dir.Play(0,15)
end if
If text = "1"
scene.GetSceneDirectorByName("AWAY POSSESSION IN", dir)
dir.Play(0,15)
end if
I've also tried
Dim dir As xpSceneDirector
If text = "0"
scene.GetSceneDirectorByName("AWAY POSSESSION OUT", dir)
dir.Play(0,15)
else text = "1"
scene.GetSceneDirectorByName("AWAY POSSESSION IN", dir)
dir.Play(0,15)
end if
------------------------------
Patrick Allen
Operations Manager
L2
------------------------------
Original Message:
Sent: 11-30-2022 04:46
From: Simon Redmile
Subject: Transitions for change of data from Dashboard
As Mal said you just write a bunch of if statements.
Dim dir As xpSceneDirector
If text = "BLUE"
scene.GetSceneDirectorByName("BLUEDIRECTOR", dir)
dir.Play()
end if
If text = "YELLOW"
scene.GetSceneDirectorByName("YELLOWDIRECTOR", dir)
dir.Play()
end if
and so on, there are more efficient ways to do this if you have a lot but this is the most simple and I think it will do what you need for now.
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 11-29-2022 23:28
From: Malcolm Thorpe
Subject: Transitions for change of data from Dashboard
You start with an if statement, then all the rest are else if statements. and end with an end if.
------------------------------
Malcolm Thorpe
Free Lance Xpression Designer/Carbonite TD
Original Message:
Sent: 11-29-2022 20:34
From: Patrick Allen
Subject: Transitions for change of data from Dashboard
OK so can I string together multiple IF statements?
I essentially want it to animate NETWORK IN when the DOWN text is empty and when the DOWN changes I want it to animate DOWNS IN so that it'll also run the animation when the text changes between, say "1st Down" and "2nd Down" and so forth. But, without the NETWORK quad in it.
If I have the NETWORK quad animate out on DOWNS IN then it will keep animating every time I change the downs. So how do I write this out where
IF txt="" then NETWORK IN
If txt="[n]" then DOWNS IN, and make NETWORK is invisible? Or can I have it where If txt="[n]" runs NETWORK OUT, but when it changes between from one string to another it runs DOWNS IN?
Hopefully I'm making sense.
------------------------------
Patrick Allen
Operations Manager
L2
Original Message:
Sent: 11-23-2022 15:32
From: Simon Redmile
Subject: Transitions for change of data from Dashboard
I would think about this in a different way.
Make an animation that brings the quad visible or invisible and then use onset text the way you did before except you'll want an if statement.
'this checks if its an empty string or not
If text = ""
Dim dir As xpSceneDirector
scene.GetSceneDirectorByName("name_of_your_Qaud_SceneDirector_IN", dir)
dir.Play()
else
Dim dir As xpSceneDirector
scene.GetSceneDirectorByName("name_of_your_Qaud_SceneDirector_OUT", dir)
dir.Play()
end if
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 11-23-2022 13:03
From: Patrick Allen
Subject: Transitions for change of data from Dashboard
Could you point me in the right direction for a script to run a scene director whenever a quad is changed from invisible to visible? In visual logic I have a network logo set to turn visible whenever there's no text in the down and distance text. I'd like it to animate on rather than just cut on.
------------------------------
Patrick Allen
Operations Manager
L2
Original Message:
Sent: 11-23-2022 07:14
From: Simon Redmile
Subject: Transitions for change of data from Dashboard
Got to start somewhere, I started by learning from this forum as well :)
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 11-22-2022 17:35
From: Patrick Allen
Subject: Transitions for change of data from Dashboard
Thank you so much! I still don't understand how to create it from scratch (brand new to scripting) but I did get it to work.
------------------------------
Patrick Allen
Operations Manager
L2
Original Message:
Sent: 11-22-2022 14:14
From: Simon Redmile
Subject: Transitions for change of data from Dashboard
This will set you right.
https://livinglive.community/discussion/run-scenedirector-onsettext
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 11-22-2022 13:48
From: Patrick Allen
Subject: Transitions for change of data from Dashboard
Howdy y'all,
Apologies if this is a question that's been answered before but my google-fu has failed me.
I'm building a simple football scorebug and I'm looking to add transitions to the various text fields as they change. For example a dissolve and push to the score text field when the text changes, or simple a dissolve between entries when the downs change. Would this be a script or used under transition logic?
Any help would be appreciated.
------------------------------
Patrick Allen
Operations Manager
L2
------------------------------