Any way to load then select
Widdershins Studio
Posts: 539
I'd like to automate something in the script I am working on.
I've learnt how to load a model in script.
What I would like to do is after the model is loaded that it is selected. It would need to add to the current selections too.
Is there a way to do this, I've dug high and low, but to no avail.
Many thanks.
Comments
What I do is use Scene.getNodeList() to get a list of waht's in the scene, and store it, then load my item, get a second copy of Scene.getNodeList() and run backwards through that until I find the item that isn't in the old list.
Ahh that's clever thank for the tip
Tried this but it does not produce unique identifiers...
So say I have these duplicates in my scene pane:
item
item (2)
item (3)
item (4)
Because the base name was item...
All I get out of it is item for each one.
So say I loaded another duplicate there's no way for me to isolate it.
Don't look at the names or labels, compare the actual items (well, their pointers but since this is a script they look the same).
I haven't tested this, just wrote it from memory, but the general idea should be right
Thanks, I couldn't get push to work but it gave me some ideas