Graphics

 View Only
  • 1.  triggering a secondary directoy

    Posted 05-09-2018 18:48
    I'm not sure if there is a better way, but here is what I'm trying to achieve. I have secondary directory which I am triggering from the main director. However, I don't want it always to trigger. I would like to enable and disable the trigger in the main directory using a script. Trigger is on a director track by itself. I see I can enable and disable the track by clicking the "eye" for that track. Is there a way to do this in a script.


  • 2.  RE: triggering a secondary directoy

    Posted 05-10-2018 17:00

    This can be done by enabling and disabling tracks in the scene directors.

    Sample/untested script:

    'Debug Message
    Engine.DebugMessage("Start"�,0)

    'Defining Vars
    Dim scenedir As xpSceneDirector
    Dim track As xpSceneDirectorTrack
    Dim i As Integer

    'Enable or Disable
    i = 1

    'Get the SceneDirector
    Self.GetSceneDirectorByName("SceneDirector1"�,scenedir)

    'Get the track to Disable or Enable
    Scenedir.GetTrackByName("Track3"�,track)

    'Logic
    if i = 0 then

    track.Enabled = false

    else
    track.Enabled = true

    'Debug Message
    Engine.DebugMessage("End"�,0)

    #XPression


  • 3.  RE: triggering a secondary directoy

    Posted 05-11-2018 13:24
    Thanks - that did it
    #XPression