mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Fix pointcache creator and refactor lib.OrderedDict import
This commit is contained in:
parent
ef03d9af47
commit
4ce33fda6e
6 changed files with 13 additions and 6 deletions
|
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from colorbleed.maya import lib
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ class CreateAnimation(avalon.maya.Creator):
|
|||
super(CreateAnimation, self).__init__(*args, **kwargs)
|
||||
|
||||
# create an ordered dict with the existing data first
|
||||
data = lib.OrderedDict(**self.data)
|
||||
data = OrderedDict(**self.data)
|
||||
|
||||
# get basic animation data : start / end / handles / steps
|
||||
for key, value in lib.collect_animation_data().items():
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from colorbleed.maya import lib
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ class CreateCamera(avalon.maya.Creator):
|
|||
super(CreateCamera, self).__init__(*args, **kwargs)
|
||||
|
||||
# get basic animation data : start / end / handles / steps
|
||||
data = lib.OrderedDict(**self.data)
|
||||
data = OrderedDict(**self.data)
|
||||
animation_data = lib.collect_animation_data()
|
||||
for key, value in animation_data.items():
|
||||
data[key] = value
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from colorbleed.maya import lib
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ class CreateLayout(avalon.maya.Creator):
|
|||
super(CreateLayout, self).__init__(*args, **kwargs)
|
||||
|
||||
# create an ordered dict with the existing data first
|
||||
data = lib.OrderedDict(**self.data)
|
||||
data = OrderedDict(**self.data)
|
||||
|
||||
# get basic animation data : start / end / handles / steps
|
||||
for key, value in lib.collect_animation_data().items():
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from colorbleed.maya import lib
|
||||
|
||||
|
|
@ -12,7 +13,7 @@ class CreateLook(avalon.maya.Creator):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super(CreateLook, self).__init__(*args, **kwargs)
|
||||
|
||||
data = lib.OrderedDict(**self.data)
|
||||
data = OrderedDict(**self.data)
|
||||
data["renderlayer"] = lib.get_current_renderlayer()
|
||||
|
||||
self.data = data
|
||||
|
|
|
|||
|
|
@ -15,12 +15,14 @@ class CreatePointCache(avalon.maya.Creator):
|
|||
def __init__(self, *args, **kwargs):
|
||||
super(CreatePointCache, self).__init__(*args, **kwargs)
|
||||
|
||||
# create an ordered dict with the existing data first
|
||||
data = OrderedDict(**self.data)
|
||||
|
||||
# get scene values as defaults
|
||||
start = cmds.playbackOptions(query=True, animationStartTime=True)
|
||||
end = cmds.playbackOptions(query=True, animationEndTime=True)
|
||||
|
||||
# build attributes
|
||||
attributes = OrderedDict()
|
||||
attributes["startFrame"] = start
|
||||
attributes["endFrame"] = end
|
||||
attributes["handles"] = 1
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
from collections import OrderedDict
|
||||
import avalon.maya
|
||||
from colorbleed.maya import lib
|
||||
|
||||
|
|
@ -13,7 +14,7 @@ class CreateYetiFur(avalon.maya.Creator):
|
|||
super(CreateYetiFur, self).__init__(*args, **kwargs)
|
||||
|
||||
# get scene values as defaults
|
||||
data = lib.OrderedDict(**self.data)
|
||||
data = OrderedDict(**self.data)
|
||||
animation_data = lib.collect_animation_data()
|
||||
for key, value in animation_data.items():
|
||||
data[key] = value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue