Graphics

 View Only
  • 1.  Utilize Take Item number as value

    Posted 02-15-2024 14:28

    Hello!,

    I found this little gem of a script in the forum to overwrite an existing TakeItem with the ID of 1000:

    dim take2 as xpTakeItem

    engine.sequencer.getTakeItemByID(1000,take2)

    take2.ID = 2000

    I was wondering if there was a way to extract the Take ID (regardless of it's number) to use the value for other scripting purposes. The case I'd like to try is a TakeID number (ex 1234) could be used to drive SetVolatileTexture to map an image with the same naming (1234.jpg). Not sure if this is even possible but wanted to throw it out there.



    ------------------------------
    Chris Jordan
    Graphic Artist in Charge
    NBCUniversal
    ------------------------------


  • 2.  RE: Utilize Take Item number as value

    Posted 02-15-2024 15:30

    engine.sequencer.getFocusedTakeItem(take1)

    for example

    dim take1, take2 as xpTakeItem

    engine.sequencer.getFocusedTakeItem(take1)

    engine.sequencer.getTakeItemByID(take1.ID + 1000,take2)

    take1.execute

    take2.execute



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Utilize Take Item number as value

    Posted 02-15-2024 19:01

    Amazing! Many thanks Simon - this provided the result needed to pair with the amount of resized/styled image files we handle for daily production



    ------------------------------
    Chris Jordan
    Graphic Artist in Charge
    NBCUniversal
    ------------------------------



  • 4.  RE: Utilize Take Item number as value

    Posted 02-16-2024 04:59

    Welcome!



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------