View Single Post
# 1 08-11-2008 , 01:55 PM
Registered User
Join Date: Oct 2008
Location: Sheffield, England
Posts: 6

Script Editor (Image name for each Image)

Hi i'm trying to make a script that renames each image while rendering, im still nooby at this so hoping sombody else knows the answer >.<

neway heres my problem.

the first image should be called 000000
2nd000001
3rd 000002
4th 0000003

however everytime i do it, there all called 000003,

really need this script, when u have to do 50 of these, 600 and odd images each it really becomes a strugle >.<
here is the script:

setAttr -type "string" defaultRenderGlobals.imageFilePrefix "000000";
changeMayaSoftwareFileNamePrefix;
updateMayaSoftwareFileNamePrefixControl;
updateMayaSoftwareTargetFilePreview;
timeControl -e -beginScrub $gPlayBackSlider;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|frameLayout2|tim eControl1 //
currentTime 10 ;
timeControl -e -endScrub $gPlayBackSlider;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|frameLayout2|tim eControl1 //
floatField -edit -value `currentTime -query` MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1 //
ikSelectionChanged("MayaWindow|mainKeysMenu|menuIt em729|ikFKStateItem");
renderWindowRender redoPreviousRender renderView;
playButtonStepForward;
floatField -edit -value `currentTime -query` MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1 //
ikSelectionChanged("MayaWindow|mainKeysMenu|menuIt em729|ikFKStateItem");
setAttr -type "string" defaultRenderGlobals.imageFilePrefix "000001";
changeMayaSoftwareFileNamePrefix;
updateMayaSoftwareFileNamePrefixControl;
updateMayaSoftwareTargetFilePreview;
renderWindowRender redoPreviousRender renderView;
playButtonStepForward;
floatField -edit -value `currentTime -query` MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1 //
ikSelectionChanged("MayaWindow|mainKeysMenu|menuIt em729|ikFKStateItem");
setAttr -type "string" defaultRenderGlobals.imageFilePrefix "000002";
changeMayaSoftwareFileNamePrefix;
updateMayaSoftwareFileNamePrefixControl;
updateMayaSoftwareTargetFilePreview;
renderWindowRender redoPreviousRender renderView;
playButtonStepForward;
floatField -edit -value `currentTime -query` MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1;
// Result: MayaWindow|mayaMainWindowForm|TimeSliderForm|formL ayout16|formLayout17|formLayout45|floatField1 //
ikSelectionChanged("MayaWindow|mainKeysMenu|menuIt em729|ikFKStateItem");
setAttr -type "string" defaultRenderGlobals.imageFilePrefix "000003";
changeMayaSoftwareFileNamePrefix;
updateMayaSoftwareFileNamePrefixControl;
updateMayaSoftwareTargetFilePreview;
renderWindowRender redoPreviousRender renderView;