Incorrect value when setting an override for start/end frame

Incorrect value when setting an override for start/end frame

Anonymous
Not applicable
714 Views
1 Reply
Message 1 of 2

Incorrect value when setting an override for start/end frame

Anonymous
Not applicable

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?

715 Views
1 Reply
Reply (1)
Message 2 of 2

Sigrid.mohn
Contributor
Contributor

3 years later and still no documentations and I am having the same issue:P

0 Likes