Graphics

 View Only
  • 1.  Scripting - Get a Take Item to reference itself

    Posted 11-12-2012 20:44
    Hey folks,

    I'm trying to find a way to get a take item in the sequencer to run a script that references itself -- i.e. defines itself as an xpBaseTakeItem. I've tried using the methods to get a take item by ID or index but these are all obviously fixed; I'm hoping to find something where the script for a scene can run differently based on the published fields in any given instance of itself. Anyone know any way to accomplish this?


  • 2.  RE: Scripting - Get a Take Item to reference itself

    Posted 11-13-2012 21:53
    You didn't really explain "why" you're trying to do this; so maybe my answer won't make sense; but can't you read the contents of one of the published text fields during the OnOnline script and use the contents of the text field to determine what scripting actions you want to run? By the time the OnOnline script starts running the published fields have already been set in the text objects in the scene.

    #XPression


  • 3.  RE: Scripting - Get a Take Item to reference itself

    Posted 11-14-2012 21:10
    That works! Wound up over-thinking that -- for some reason I was set on the idea that the text field on the scene itself was always fixed and the take item was looking at its own instance of the scene. Thanks for the help!

    #XPression