View Full Version : importing objects
leviathan 04 April 2003, 03:44 PM Hi,
when importing objects with the "file" Mel command, how can I know what are the newly imported objects?
Thanks!
|
|
X-Tender
04 April 2003, 05:41 PM
hmm i dont know if it is the best mehtode but i used this to get a lust of imported gemoetry (no lights or other things)
select -r `listTransforms -geometry`;
$selected = `ls -sl`;
file -i $filename
select -r `listTransforms -geometry`;
$imported = `ls -sl`;
select -r $selected;
select -tgl $imported;
$importedgeo = `ls -sl`;
mark_wilkins
04 April 2003, 08:05 PM
that's pretty clever!
Another possibility that may or may not make sense depending on what you're doing is to import with a namespace. Then, you can use ls to list everything in the new namespace, and possibly move the objects out of that namespace when you're done (or not.)
-- Mark
X-Tender
04 April 2003, 09:53 PM
Originally posted by mark_wilkins
that's pretty clever!
:love: Thanks! :bounce:
leviathan
04 April 2003, 08:50 AM
Thanks!!
:thumbsup:
CGTalk Moderation
01 January 2006, 09:00 PM
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.