mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Added collect animation plugin
This commit is contained in:
parent
7616158dab
commit
822fa2c745
1 changed files with 30 additions and 0 deletions
30
colorbleed/plugins/houdini/publish/collection_animation.py
Normal file
30
colorbleed/plugins/houdini/publish/collection_animation.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import pyblish.api
|
||||
|
||||
|
||||
class CollectAnimation(pyblish.api.InstancePlugin):
|
||||
"""Collect the animation data for the data base
|
||||
|
||||
Data collected:
|
||||
- start frame
|
||||
- end frame
|
||||
- nr of steps
|
||||
|
||||
"""
|
||||
|
||||
label = "Collect Animation"
|
||||
families = ["colorbleed.pointcache"]
|
||||
|
||||
def process(self, instance):
|
||||
|
||||
node = instance[0]
|
||||
|
||||
# Get animation parameters for data
|
||||
parameters = {"f1": "startFrame",
|
||||
"f2": "endFrame",
|
||||
"f3": "steps"}
|
||||
|
||||
data = {}
|
||||
for par, translation in parameters.items():
|
||||
data[translation] = node.parm(par).eval()
|
||||
|
||||
instance.data.update(data)
|
||||
Loading…
Add table
Add a link
Reference in a new issue