1

What would be the way to ensure each new camera has some default settings applied? Specifically gate settings. Probably possible with a scriptJob node, but maybe it's burried somewhere in files ? I can easily override menu commands, but this wont work with createNode or camera commands.

-Michal

flag

2 Answers

0

You could put a scriptJob in your userSetup.mel;

scriptJob -event DagObjectCreated "checkCams(`ls -cameras`)";

I don't think there's a simple way to know what camera was created. "ls -cameras" doesn't return them in the order they were created.

Also, if you put more than one creation command in a script it will still only fire once. For example:

createNode camera;
createNode camera;
createNode camera;

So its probably best to check all the cameras each time it fires.

link|flag
0

Ok, I looked into factory MEL files, and decided to put some optionVar into my userSetup.mel

optionVar -floatValue cameraHorizAper 0.98;

optionVar -floatValue cameraVertAper 0.735;

optionVar -intValue cameraFilmFitMode 1;

This doesn't work with createNode, but it's a starter.

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.