# Utilize Take Item number as value

**URL:** <https://rossvideo.community/t/utilize-take-item-number-as-value/9657>\
**Category:** Graphics & Virtual\
**Created:** [February 15, 2024, 7:28pm UTC](https://rossvideo.community/t/utilize-take-item-number-as-value/9657 "2024-02-15T19:28:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisjordan](https://rossvideo.community/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@chrisjordan](https://rossvideo.community/u/chrisjordan)\
**Post date:** [February 15, 2024, 7:28pm UTC](https://rossvideo.community/t/utilize-take-item-number-as-value/9657/1 "2024-02-15T19:28:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [February 15, 2024, 8:30pm UTC](https://rossvideo.community/t/utilize-take-item-number-as-value/9657/2 "2024-02-15T20:30:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chrisjordan](https://rossvideo.community/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@chrisjordan](https://rossvideo.community/u/chrisjordan)\
**Post date:** [February 16, 2024, 12:01am UTC](https://rossvideo.community/t/utilize-take-item-number-as-value/9657/3 "2024-02-16T00:01:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![simonredmile](https://rossvideo.community/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@simonredmile](https://rossvideo.community/u/simonredmile)\
**Post date:** [February 16, 2024, 9:59am UTC](https://rossvideo.community/t/utilize-take-item-number-as-value/9657/4 "2024-02-16T09:59:00Z")

</div>

Welcome!
