PDA

View Full Version : rename camera with the scene name


seb-desmet
08-20-2008, 01:19 PM
Hi everybody

does anybody know a script who rename the camera with the filename when we save the file

for instance if my scene name is myScene_V01.mb, my camera name change to myScene_V01
and if I save to myScene_V02.mb, the camera name change automaticly to myScene_V02
also if I have 2 cameras to rename it will be like this myScene_V02a and myScene_V02b

I'm suck a bit in mel script so If someone can help me it would be very cool

Thx for your help

greatPumpkin
08-20-2008, 04:32 PM
string $filename = basename(`file -q -sn`,".mb");
rename "camera1" $filename;

to do it automatically, check out the documentation on scriptJob.

CGTalk Moderation
08-20-2008, 04:32 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.