PDA

View Full Version : Create ACTION1 & DIRECTOR Cameras Button


projectironwill
09-20-2003, 06:26 AM
Here's a simple but helpful setup for the shelf for those who animate and/or those who want a preview window of what there are working on.

It puts the workspace into Four View with an ACTION CAMERA in the Top Left panel and a non-renderable DIRECTOR camera in the Top Right panel. Both front and side appear below in wireframe mode.

The ACTION1 Camera had the Resolution Gate up with the Safe Action and Safe Title activated, but only displays the objects and not any component features. That way you can concentrate on what your results should be in shaded mode.

The DIRECTOR Camera has the the normal perps features but is in wireframe mode with "Smooth Shade Selected Items checked and Shade Options > X-Ray checked. So you can see everything even when you have it selected, but know what you have selected.

To create another action camera the second button was made so that when you click it, it names the next Action camera to ACTION2. If you press the AD button again, your going to create a DIRECTOR1 camera making two Director cameras, which would be a waste.

I have two more buttons that I made called Look Through ACTION1 and Look Through DIRECTOR
that resets that panel back to the ACTION1 and/or DIRECTOR settings. If you like the AD and A2 buttons, and would like these other two buttons as well, just email me and I will send you the MEL. The AD and A2 are below for you to try out.

All ACTION Cameras are renderable when created, but not the DIRECTOR camera, and the other default cameras are not renderable either.
________________________________________________________________________________
=======================================================================
Label & Tooltips: Create ACTION1 & DIRECTOR Cameras in Four View
Icon Name: AD
=======================================================================


setAttr "perspShape.renderable" 0;
setNamedPanelLayout "Four View";
{ string $camera[] = `camera -n persp -hc "viewSet -p %camera"`; viewSet -p $camera[0]; lookThroughModelPanel $camera[0] modelPanel1; };
camera -e -displayFilmGate off -displayResolution on -overscan 1.3 persp1;
camera -e -displaySafeAction on persp1;
camera -e -displaySafeTitle on persp1;
setAttr "perspShape2.renderable" 1;
setAttr "persp1.displayLocalAxis" 1;
rename "persp1" "ACTION1";
modelEditor -edit -displayAppearance smoothShaded -activeOnly false modelPanel1;
modelEditor -e -nurbsCurves 0 modelPanel1;
modelEditor -e -lights 0 modelPanel1;
modelEditor -e -cameras 0 modelPanel1;
modelEditor -e -joints 0 modelPanel1;
modelEditor -e -ikHandles 0 modelPanel1;
modelEditor -e -deformers 0 modelPanel1;
modelEditor -e -dynamics 0 modelPanel1;
modelEditor -e -fluids 0 modelPanel1;
modelEditor -e -locators 0 modelPanel1;
modelEditor -e -dimensions 0 modelPanel1;
modelEditor -e -pivots 0 modelPanel1;
modelEditor -e -handles 0 modelPanel1;
modelEditor -e -textures 0 modelPanel1;
modelEditor -e -strokes 0 modelPanel1;
modelEditor -e -cv 0 modelPanel1;
modelEditor -e -hulls 0 modelPanel1;
modelEditor -e -grid 0 modelPanel1;
modelEditor -edit -displayAppearance smoothShaded -activeOnly false modelPanel1;
modelEditor -e -wos 0 modelPanel1;
modelEditor -e -xray 0 modelPanel1;
{ string $camera[] = `camera -n persp -hc "viewSet -p %camera"`; viewSet -p $camera[0]; lookThroughModelPanel $camera[0] modelPanel4; };
rename "persp1" "DIRECTOR";
modelEditor -edit -displayAppearance smoothShaded -activeOnly true modelPanel4;
modelEditor -e -xray 1 modelPanel4;


________________________________________________________________________________
=======================================================================
Label & Tooltips: Create New ACTION Camera
Icon Name: A2
=======================================================================


setAttr "perspShape.renderable" 0;
{ string $camera[] = `camera -n persp -hc "viewSet -p %camera"`; viewSet -p $camera[0]; lookThroughModelPanel $camera[0] modelPanel1; };
camera -e -displayFilmGate off -displayResolution on -overscan 1.2 persp1;
camera -e -displaySafeAction on persp1;
camera -e -displaySafeTitle on persp1;
setAttr "perspShape2.renderable" 1;
setAttr "persp1.displayLocalAxis" 1;
rename "persp1" "ACTION1";

________________________________________________________________________________

Try these out, and let me know your comments and suggestions here on the forums or via email.

Enjoy!

CGTalk Moderation
01-16-2006, 02:00 AM
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.