Graphics

 View Only
  • 1.  Modifying event positions in Scene Director

    Posted 06-09-2016 17:02
    Is it possible to move a Pause event along a scene director via scripting / Visual Logic? I've created a "Jump To" event that I'd like to move around based on how many topics I'm displaying. I can create a series of tracks and enable/disable them to achieve this, but I'd like to avoid doing that if possible.

    Thanks!
    Brian


  • 2.  RE: Modifying event positions in Scene Director

    Posted 06-09-2016 20:59
    Yes you can, via scripting.
    Your Event is an xpSceneDirectorClip, this xpSceneDirectorClip has a property "Position".
    #XPression


  • 3.  RE: Modifying event positions in Scene Director

    Posted 06-09-2016 21:31
    So it would be something like this?

    dim jump as xpSceneDirectorClip

    scene.SceneDirector.GetSceneDirectorClipByName("Jump", jump)

    if trim(text) = "0" then
    jump.position = 100.0
    elseif trim(text) = "1" then
    jump.position = 200.0
    end if


    #XPression


  • 4.  RE: Modifying event positions in Scene Director

    Posted 06-09-2016 21:51
    something like this :

    scene.GetTrackByName("XXX", MyTrack)
    MyTrack.GetClipByName("Jump", jump)

    if trim(text) = "0" then
    jump.position = 100.0
    elseif trim(text) = "1" then
    jump.position = 200.0
    end if

    #XPression


  • 5.  RE: Modifying event positions in Scene Director

    Posted 06-17-2016 22:02
    I tried something similar for a different scene - this time I attempted to move the Animation Controllers, and I thought I had the script correct based on your note above. However, I'm not getting anything to move. What is incorrect in my code below?

    dim track1, track2 as xpSceneDirectorTrack
    dim top, bot as xpSceneDirectorClip

    scene.GetTrackByName("Track1", track1)
    scene.GetTrackByName("Track2", track2)
    track1.GetClipByName("top", top)
    track2.GetClipByName("bot", bot)

    if trim(text) = "0" then
    top.position = 0.0
    bot.position = 30.0

    elseif trim(text) = "1" then
    top.position = 30.0
    bot.position = 0.0

    end if
    #XPression


  • 6.  RE: Modifying event positions in Scene Director

    Posted 06-19-2016 08:05
    dim track1, track2 as xpSceneDirectorTrack
    dim top, bot as xpSceneDirectorClip

    scene.scenedirector.GetTrackByName("Track1", track1)
    scene.scenedirector.GetTrackByName("Track2", track2)
    track1.GetClipByName("top", top)
    track2.GetClipByName("bot", bot)

    if trim(text) = "0" then
    top.position = 0.0
    bot.position = 30.0

    elseif trim(text) = "1" then
    top.position = 30.0
    bot.position = 0.0

    end if


    And tadam !
    #XPression


  • 7.  RE: Modifying event positions in Scene Director

    Posted 06-20-2016 13:41
    I knew I was reasonably close... thanks!
    #XPression