if I run this
ap_dofCamera maya;
I get error on line 21
check this out :
// Alias Script File
// MODIFY THIS AT YOUR OWN RISK
//
// Creation Date: 7 May 1997
//
// Procedure Name:
// cameraMakeNode
//
// Description:
// Creates extra camera nodes for the center of interest and up vector.
//
// Input Arguments:
// count - Number of nodes to create.
// camera - The camera transform name. Pass "" to use selection.
//
// Return Value:
// None.
//
return Value is NONE
make sure it works before you submit stuff
the problem is here:
string $dofCamera = `cameraMakeNode 2 ""`;
$dofCamera is None because cameraMakeNode.mel returns None
so it breaks on next line.
error >> string $dofCameraParent[]= `listRelatives -p $dofCamera`;
Maybe you have cameraMakeNode edited or it's different your version of Maya but it's been the same since 1997, over 10 years.
Auto DOF Camera 1.0.0 for Maya (maya script)
Creates DOF for maya or mr using a Camera with Aim
1-2 of 2
Previous
Next
Reviews Love it? Or maybe you want to share some creative ways you're putting this item to use.
-

-
Your error is most likely from having a camera shape & transform nodes missmatched. Name your cameras properly in your scene and it should work fine. ex. transform Node = camera1 shape Node = camera5Shape It works perfectly fine in a brand new scene. The script will also break if Mental Ray is not running from the start. Once mental Ray is running the script works fine.
Please confirm your email before commenting.