|
Hi, i’m pretty new to MEL programming. I’m trying to make a simple script that imports a mesh from a file and position it. However i can´t seem to grasp the way to select a file imported mesh in order to move or do any operation to it.
I’m importing the file like this:
file -import -type “mayaBinary” -ra true -namespace “mesh” -options “v=0” -pr -loadReferenceDepth “all” “path/to/file.mb”;
but whats the command to select the imported file?
Thanks a lot!
|
|
|
|
to be more exact i’m looking to select the result of the imported file.
Thanks
|
|
|
|
I see you are using a namespace “mesh” in your command.
Your imported parts should be named “mesh:NAME” after the import, where NAME is, of course, the name from the file.
If this is correct, then:
select -r "mesh:*";
should select everything that was imported, as a new selection list. Unless what you are importing already has name with a namespace, in which case you would need “name:*:*”, and so on.
If you want to add what was imported to what was already selected instead of a new list, you would use -add instead of -r (replace), but it sounds like you want a new selection to move/rotate/whatever.
<* Wes *>
|
|
|