Message 1 of 2
Incorrect value when setting an override for start/end frame
Not applicable
07-12-2016
07:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using the new Render Setup Python API in Maya 2016 Ext 2, if I create an override and set its value, the result is 1/250th of the expected result.
In the example below, the result in the UI (or from a query) would 0.004. If I set it to 250, than the value is 1. I've only observed this with start/end frame. Playing with settings on my timeline or changing the frame stepping have no effect.
newOverride = newLayer.createAbsoluteOverride("defaultRenderGlobals","startFrame", renderSettingsCollection)
newOverride.setAttrValue(1)However, if I set the attribute on the override node, it works fine:
maya.cmds.setAttr("startFrame.attrValue", 1)
Is this a bug or am I using the wrong method to set the value of the override?