Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   rename duplicated object without selecting it (https://simplymaya.com/forum/showthread.php?t=20404)

Falott 27-02-2006 05:30 PM

rename duplicated object without selecting it
 
I´m new to scripting and have one simple question. could not find anything in the command ref. when duplicating an object, is there a way where I can rename this newly created object within the same command? I mean nothing like picking the new object with a new command, cause I can´t know how maya will name it.. like ->

duplicate polyToSubd1 ;
// Result: polyToSubd4 //
rename "polyToSubd4" "tmp_side1";

but ->

duplicate polyToSubd1 [-rename duped result "tmp_1"] ;


thx in advance!

Falott 27-02-2006 05:32 PM

sry! stupid me!

(the flag is -n)


All times are GMT. The time now is 06:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018