Saturday, August 31, 2013

Basic Camera Rig Mel Script Test 1

After studying the options and deciding on where to start writing my script, I came up with a basic test model for what I want to get done. This script basically does everything I did with my prototype test, except it makes it a bit easier and less time consuming to set up. I am still deciding on where I should move on from here.

Here is the basic set up of my script:

camera -centerOfInterest 5 -focalLength 35 -lensSqueezeRatio 1 -cameraScale 0.4036 -horizontalFilmAperture 1.4173 -horizontalFilmOffset 0 -verticalFilmAperture 0.9449 -verticalFilmOffset 0 -filmFit Fill -overscan 1 -motionBlur 0 -shutterAngle 144 -nearClipPlane 0.1 -farClipPlane 10000 -orthographic 0 -orthographicWidth 30 -panZoomEnabled 0 -horizontalPan 0 -verticalPan 0 -zoom 1; objectMoveCommand; cameraMakeNode 1 "";
// camera1 // 
displaySmoothness -divisionsU 1 -divisionsV 1 -pointsWire 8 -pointsShaded 2 -polygonObject 2;
setAttr "camera1.translateZ" 27;
camera -centerOfInterest 5 -focalLength 35 -lensSqueezeRatio 1 -cameraScale 0.4036 -horizontalFilmAperture 1.4173 -horizontalFilmOffset 0 -verticalFilmAperture 0.9449 -verticalFilmOffset 0 -filmFit Fill -overscan 1 -motionBlur 0 -shutterAngle 144 -nearClipPlane 0.1 -farClipPlane 10000 -orthographic 0 -orthographicWidth 30 -panZoomEnabled 0 -horizontalPan 0 -verticalPan 0 -zoom 1; objectMoveCommand; cameraMakeNode 1 "";
// camera2 // 
setAttr "camera2.translateX" 27;
setAttr "camera2.rotateY" 90;
camera -centerOfInterest 5 -focalLength 35 -lensSqueezeRatio 1 -cameraScale 0.4036 -horizontalFilmAperture 1.4173 -horizontalFilmOffset 0 -verticalFilmAperture 0.9449 -verticalFilmOffset 0 -filmFit Fill -overscan 1 -motionBlur 0 -shutterAngle 144 -nearClipPlane 0.1 -farClipPlane 10000 -orthographic 0 -orthographicWidth 30 -panZoomEnabled 0 -horizontalPan 0 -verticalPan 0 -zoom 1; objectMoveCommand; cameraMakeNode 1 "";
// camera3 // 
setAttr "camera3.translateZ" -27;
setAttr "camera3.rotateY" 180;
camera -centerOfInterest 5 -focalLength 35 -lensSqueezeRatio 1 -cameraScale 0.4036 -horizontalFilmAperture 1.4173 -horizontalFilmOffset 0 -verticalFilmAperture 0.9449 -verticalFilmOffset 0 -filmFit Fill -overscan 1 -motionBlur 0 -shutterAngle 144 -nearClipPlane 0.1 -farClipPlane 10000 -orthographic 0 -orthographicWidth 30 -panZoomEnabled 0 -horizontalPan 0 -verticalPan 0 -zoom 1; objectMoveCommand; cameraMakeNode 1 "";
// camera4 // 
setAttr "camera4.translateX" -27;
setAttr "camera4.rotateY" -90;
circle -c 0 0 0 -nr 0 1 0 -sw 360 -r 1 -d 3 -ut 1 -tol 0.01 -s 8 -ch 1; objectMoveCommand;
setAttr "nurbsCircle1.scaleZ" 27;
setAttr "nurbsCircle1.scaleX" 27;
setAttr "nurbsCircle1.scaleY" 27;
select -r camera1 ;
select -tgl camera2 ;
select -tgl camera3 ;
select -tgl camera4 ;
select -tgl nurbsCircle1 ;
parent;
// camera1 camera2 camera3 camera4 // 
select -r nurbsCircle1 ;
rename "nurbsCircle1" "CameraRig";
// CameraRig // 


No comments:

Post a Comment