@Simon Redmile well, not really... But I do guess I could put it on say fram 2 in the scene director and look for "itself" with the GetTakeItemOnLayer option...
That should in theory work... I'm kinda leaning towards just using the textfields anyhow, as it's more pliable when working with it...
I do think it's kinda wierd that there's no GetTakeItemSelf or something similar to be honest, but gotta work with what I've got!
Follow up question though, is there any way I can get a text field to self populate with it's take ID though?
I'm thinking through tags or through keys and/or tags, or a combination thereof... Been trying, but either I cant get the tags correct or I'm misunderstanding.
------------------------------
Aleksander Stalsberg
Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
Norway
------------------------------
Original Message:
Sent: 10-20-2022 11:12
From: Simon Redmile
Subject: How to call a different scene with "same" %relid%...
Is the scene already online that you want to reference? You could get it from the layer GetTakeItemOnLayer?
Other available calls are, GetTakeItemByIndex, could be interesting if the item you want is always the same place in the playlist?
You also have GetFirstTakeItem and GetLastTake Item if that could be useful?
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
Original Message:
Sent: 10-20-2022 10:34
From: Aleksander Stalsberg
Subject: How to call a different scene with "same" %relid%...
@Simon Redmile Yes and no...
The script does what you'd think, and it does trigger with the engine object to call other scenes.
However... I cannot use the getFocusedTakeItem to get the takeid of the scene that goes online...
Reason for this is that item that is in focus is the group upon wich the different scenes are within, and that group is set to auto, meaning the focused item is still the group, and not the actual scene that goes online...
Kinda thinking I should fall back on the other suggestion about calling the value from a text field in order to get it done instead.
Unless there's another option to get a scene to refer to itself instead in scripting (not that I can spot...)
------------------------------
Aleksander Stalsberg
Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
Norway
Original Message:
Sent: 10-18-2022 14:26
From: Simon Redmile
Subject: How to call a different scene with "same" %relid%...
Hey Alek,
You can get take ID's from scripts.
dim take1 as xpTakeItem
engine.sequencer.getFocusedTakeItem(take1)
take1.execute
Because its Tessera I think you'll need to use project instead of engine;
project.sequencer.getFocusedTakeItem(take1)
So I think to do what you want to do it would look something like;
dim take1, take2 as xpTakeItem
project.sequencer.getFocusedTakeItem(take1)
project.sequencer.getTakeItemByID(take1.ID + 100,take2)
take2.execute
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------