Here is an example that checks if any of Text1 through Text4 are enabled and sets the animation track on or off.
You can adapt as needed for your situation.
`dim obj as xpBaseObject
dim i as integer
dim anything_visible as boolean
anything_visible = false
for i = 1 to 4
if self.GetObjectByName("Text" & i, obj) then
if obj.Visible then
anything_visible = true
exit for
end if
end if
next
dim track as xpSceneDirectorTrack
if Self.SceneDirector.GetTrackByName("MyTrack", track) then
track.Enabled = anything_visible
end if
`
#XPression