[Closed] Instance Issues….
You’re probably getting that error because sLibRemoveUnneededInstancesFromArray requires a number of sub routines, such as…
sLibRemoveItemFromArray
sLibRemoveInstancesOfObjFromArray
sLibCopyArray
etc.
If you want to integrate the code into your own script, you’re going to need to copy all the functions that each one of these functions require, if that makes sense.
- Neil
Well after talking with James Haywood quick about the topic, I found a very quick and easy solution. I still need to figure out how to make multiple object unwrap stuff to work properly though.
But for a single instanced object , all I had to do was setup an initial variable obj = selection[1], then use that instead of $.baseObject , ect. Which he said makes the script faster, and also made it so my selection didn’t shift. I still had to also add to modPanel.setCurrentObject and add the Node:Obj at the end.
So all is good