Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The rotary shutter feature is incompatible with the aperture priority mode. If these settings are used in combination, the plug-in will issue a warning at export time and force the exposure mode to shutter priority.

...

Keying the Maxwell Camera Attributes

...

- Maya 2012

In Maya 2012, you cannot set keys or create layer overrides for Maxwell-specific attributes by right-clicking the corresponding control in the Attribute Editor. Instead, you have to expand the "Extra Attribute" rollup and right-click the corresponding control there. The controls will have the same name as those in the Maxwell Render rollup, but prefixed with "Mx":

Image Modified

The controls in this group behave like regular attribute controls, so you can use them for keying, locking, setting layer overrides etc.

If you want to manipulate these attributes from script, you need to first ensure that they exist. The plug-in provides a function called maxwellSetCustomScalar which creates the attribute if needed and sets it to the specified value, so use that instead of calling setAttr directly:

    maxwellSetCustomScalar("double", "cameraShape1", "mxFstop", 8.0);
    maxwellSetCustomScalar("long", "cameraShape1", "mxIso", 200);

The first parameter specifies the type of the attribute. Valid values are "long" for integers and enums, "double" for floating point numbers and "bool" for booleans. The following parameters are the node name, attribute name and value. For the complete list of custom attribute names, see the file maxwellCustomAttrs.mel in the scripts/others subdirectory of the Maya installation pathrollup do not have state logic, e.g. the region controls are not disabled when the region mode is set to "full". They are only useful when you need to set keys, expressions or layer overrides; for value manipulations, please use the controls in the Maxwell Render rollup.

This limitation does not exist in Maya 2013 or newer, where the controls in the Maxwell Render rollup behave in the same way as those for native Maya attributes.