View Single Post
# 1 27-02-2006 , 05:30 PM
Falott's Avatar
Registered User
Join Date: Jan 2005
Location: vienna
Posts: 1,095

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!