I so I have made this script it is supposed to
center the object
setup scene and lights
render
save image from render view using the maya file name and put in same directory as the scene file
right now it only does
center the object
setup scene and lights
render
so I need help for just adding code to the end for saving the image out (it needs to be the maya file name without the mb at the end and it needs to save where the scene file was opened
hope this makes sense and I would really appreciate the help
let me know if you need anymore info thanks
setCurrentRenderer "mayaHardware2";
RenderIntoNewWindow -x 1000 -y 1000 camera1;
CreateAmbientLight;
setAttr "ambientLightShape1.intensity" 0.2;
CreateDirectionalLight;
setAttr "directionalLightShape1.useDepthMapShadows" 1;
setAttr "directionalLightShape1.dmapResolution" 8192;
setAttr "directionalLightShape1.dmapFilterSize" 3;
select -r directionalLight1 ;
move -r 49.835756 0 0 ;
move -r 0 0 38.419676 ;
rotate -r -os -fo -58.392733 0 0 ;
rotate -r -os -fo 0 10.753346 0 ;
camera;
lookThroughSelected 0 modelPanel4;
setAttr "cameraShape1.orthographic" 1;
setAttr "cameraShape1.backgroundColor" -type double3 0.4398 0.4398 0.4398 ;
SelectAll;
viewFit;
RenderIntoNewWindow -x 1000 -y 1000 camera1;
renderWindowSaveImageCallback “D:/test/tester.jpg” “JPEG”;