On Thursday, March 17, 2016 at 11:31:28 AM UTC, Fredrik Averpil wrote:
> Just stumbled upon a weird one.
>
> When you cmds.getAttr('defaultRenderglobals.endframe') you get e.g. 1, if
> your end frame is set to 1.
>
> However, and this is the weird part, if you have an override in a render
> layer and you use the snipped I just previously posted to fetch it, you won’t
> get an integer back. Instead you’ll get a float. At first glance it looks
> like you’re getting 1/25 of the actual value back. But if you try different
> endframe values, you’ll see that this factor changes.
>
> Does anyone on here know how this value is actually stored in Maya?
>
> Cheers,
> Fredrik
>
>
Just wanted to chime in on this. The time values in the adjustments are divided
by the frame rate, ei 10 frame / 25 frame/sec = 0.4 sec.
Here is a script for setting the attribute values:
https://gist.github.com/tokejepsen/f5315c0e7f9de22a5b319374d9700774
And one for getting the values:
https://gist.github.com/tokejepsen/c674146a5565893b9085898fef005377
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/77e5a96a-17df-4a3b-a95a-5a8a60564041%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.