mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Add functionality back in to store playback time range with the mayaScene publish
This commit is contained in:
parent
872d85f91d
commit
ad9e172e4a
1 changed files with 26 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
from maya import cmds
|
||||
|
||||
import pyblish.api
|
||||
|
||||
|
||||
class CollectMayaSceneTime(pyblish.api.InstancePlugin):
|
||||
"""Collect Maya Scene playback range
|
||||
|
||||
This allows to reproduce the playback range for the content to be loaded.
|
||||
It does *not* limit the extracted data to only data inside that time range.
|
||||
|
||||
"""
|
||||
|
||||
order = pyblish.api.CollectorOrder + 0.2
|
||||
label = 'Collect Maya Scene Time'
|
||||
families = ["mayaScene"]
|
||||
|
||||
def process(self, instance):
|
||||
instance.data.update({
|
||||
"frameStart": cmds.playbackOptions(query=True, minTime=True),
|
||||
"frameEnd": cmds.playbackOptions(query=True, maxTime=True),
|
||||
"frameStartHandle": cmds.playbackOptions(query=True,
|
||||
animationStartTime=True),
|
||||
"frameEndHandle": cmds.playbackOptions(query=True,
|
||||
animationEndTime=True),
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue