Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

display user defined/created all objects in MAYA using MEL script.

display user defined/created all objects in MAYA using MEL script.

Anonymous
Not applicable
763 Views
1 Reply
Message 1 of 2

display user defined/created all objects in MAYA using MEL script.

Anonymous
Not applicable

I would like to display user defined/created all objects in MAYA using MEL script. 

 

My Script:

 

ls -tr;

 

- It will display all my objects with default objects.

 

Usage: Actually I would like to rename my custom object 

 

string $allobject=`ls -tr`';

 

for($eachName in $allobject){

     string $newname = $eachName+"001";

     select -r $eachName;

     rename $eachName $newname;

}

 

Please refer picture

- It will rename, Point 2, but I am in need of Point 1.

 

Thank You in Advance

 

 

 

0 Likes
Accepted solutions (1)
764 Views
1 Reply
Reply (1)
Message 2 of 2

rajasekaransurjen
Collaborator
Collaborator
Accepted solution

Hi,

Maya creates only four transform objects when we open a new file(untitled) they are front, persp, side and top. you can exclude them while renaming.

0 Likes