|11 November 2005||#1|
Join Date: Apr 2003
selecting last object. ie importd obj
is there a way to select the newly imported object....when you import an object it by default isn't selected. want to know if there is a way to do this.
At the moment the script we have queries everything in the scene and finds the odd one out. I didn't write it, but it is painfully slow on large scenes. Which are all our scenes.
Is it possible to search the scene being imported for the object. as there is usually only one object/group being imported and get that name for the master scene...so it doesn't have to search for it?
If there is another way please let me know
|11 November 2005||#2|
wellington, New Zealand
Join Date: Oct 2002
if the script you have is slow, then it is probably comparing every node in the scene,which is not that smart since imported objects are always inported to the top level (parent of the world)... so you really only need to compare them...
look into the script for the line that list everything (will look like string $allThings = `ls`) and replace the `ls` with `ls -as`
it will do that twice...
poste the script and I'll do it.
just import with nameSpace, than list stuff inthe sameSpace, then remove it from the nameSpace..
be careFull, nameSpaces are a bit of a pain if you dont keep ontop of them... and the help isn't soo good
Make something idiot proof and they'll just build a better idiot
Last edited by john_homer : 11 November 2005 at 03:57 AM.
|11 November 2005||#6|
Join Date: Sep 2003
Thread automatically closed
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
|Thread Closed share thread|