getavalon / core

The safe post-production pipeline - https://getavalon.github.io/2.0
MIT License
218 stars 49 forks source link

change fps mapping in maya #475

Closed antirotor closed 4 years ago

antirotor commented 4 years ago

What's changed? Fps in Maya is set by mapping actual fps number to string constants used by Maya to set time units. You can have fps set as integer - 25 or as float 25.0 They are numerically same but mapping recognize only integer. If you pull fps from system like ftrack, where this attribute is set as decimal to allow values like 23.976 it will also returns 25 as 25.0. To handle it, this change cast numbers like 25.0 to integer so mapping still works and adds few other Maya string constants.