mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
(hotfix) collect ftrack family
This commit is contained in:
parent
06b428b1ee
commit
61ebcee43c
2 changed files with 32 additions and 6 deletions
32
pype/plugins/maya/publish/collect_ftrack_family.py
Normal file
32
pype/plugins/maya/publish/collect_ftrack_family.py
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import pyblish.api
|
||||
|
||||
|
||||
class CollectFtrackFamilies(pyblish.api.InstancePlugin):
|
||||
"""Collect model data
|
||||
|
||||
Ensures always only a single frame is extracted (current frame).
|
||||
|
||||
Note:
|
||||
This is a workaround so that the `pype.model` family can use the
|
||||
same pointcache extractor implementation as animation and pointcaches.
|
||||
This always enforces the "current" frame to be published.
|
||||
|
||||
"""
|
||||
|
||||
order = pyblish.api.CollectorOrder + 0.3
|
||||
label = 'Add ftrack family'
|
||||
families = ["model",
|
||||
"setdress",
|
||||
"model",
|
||||
"animation",
|
||||
"workfile",
|
||||
"look"
|
||||
]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
# make ftrack publishable
|
||||
if instance.data.get('families'):
|
||||
instance.data['families'].append('ftrack')
|
||||
else:
|
||||
instance.data['families'] = ['ftrack']
|
||||
|
|
@ -24,9 +24,3 @@ class CollectModelData(pyblish.api.InstancePlugin):
|
|||
frame = cmds.currentTime(query=True)
|
||||
instance.data['startFrame'] = frame
|
||||
instance.data['endFrame'] = frame
|
||||
|
||||
# make ftrack publishable
|
||||
if instance.data.get('families'):
|
||||
instance.data['families'].append('ftrack')
|
||||
else:
|
||||
instance.data['families'] = ['ftrack']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue