mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added new creator for multiverse usd composition
This commit is contained in:
parent
899958fbba
commit
28f57a045b
1 changed files with 30 additions and 0 deletions
|
|
@ -0,0 +1,30 @@
|
|||
from openpype.hosts.maya.api import plugin, lib
|
||||
|
||||
|
||||
class CreateMultiverseUsdComp(plugin.Creator):
|
||||
"""Create Multiverse USD Composition"""
|
||||
|
||||
name = "usdOverrideMain"
|
||||
label = "Multiverse USD Override"
|
||||
family = "usd_override"
|
||||
icon = "cubes"
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CreateMultiverseUsdComp, self).__init__(*args, **kwargs)
|
||||
|
||||
self.data["stripNamespaces"] = False
|
||||
self.data["mergeTransformAndShape"] = False
|
||||
self.data["flattenContent"] = False
|
||||
self.data["writePendingOverrides"] = False
|
||||
|
||||
# The attributes below are about animated cache.
|
||||
self.data["writeTimeRange"] = True
|
||||
self.data["timeRangeNumTimeSamples"] = 0
|
||||
self.data["timeRangeSamplesSpan"] = 0.0
|
||||
|
||||
animation_data = lib.collect_animation_data(True)
|
||||
|
||||
self.data["timeRangeStart"] = animation_data["frameStart"]
|
||||
self.data["timeRangeEnd"] = animation_data["frameEnd"]
|
||||
self.data["timeRangeIncrement"] = animation_data["step"]
|
||||
self.data["timeRangeFramesPerSecond"] = animation_data["fps"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue