Utilize Take Item number as value

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.

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

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

Welcome!