Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Maya: Arnold Scene Source overhaul - OP-4865 #4449

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from maya import cmds


class CreateAss(plugin.Creator):
class CreateArnoldSceneSource(plugin.Creator):
"""Arnold Scene Source"""

name = "ass"
Expand All @@ -29,7 +29,7 @@ class CreateAss(plugin.Creator):
maskOperator = False

def __init__(self, *args, **kwargs):
super(CreateAss, self).__init__(*args, **kwargs)
super(CreateArnoldSceneSource, self).__init__(*args, **kwargs)

# Add animation data
self.data.update(lib.collect_animation_data())
Expand All @@ -52,7 +52,7 @@ def __init__(self, *args, **kwargs):
self.data["maskOperator"] = self.maskOperator

def process(self):
instance = super(CreateAss, self).process()
instance = super(CreateArnoldSceneSource, self).process()

nodes = []

Expand All @@ -61,6 +61,6 @@ def process(self):

cmds.sets(nodes, rm=instance)

assContent = cmds.sets(name="content_SET")
assProxy = cmds.sets(name="proxy_SET", empty=True)
assContent = cmds.sets(name=instance + "_content_SET")
assProxy = cmds.sets(name=instance + "_proxy_SET", empty=True)
cmds.sets([assContent, assProxy], forceElement=instance)
8 changes: 8 additions & 0 deletions openpype/hosts/maya/plugins/create/create_pointcache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from maya import cmds

from openpype.hosts.maya.api import (
lib,
plugin
Expand Down Expand Up @@ -37,3 +39,9 @@ def __init__(self, *args, **kwargs):
# Default to not send to farm.
self.data["farm"] = False
self.data["priority"] = 50

def process(self):
instance = super(CreatePointCache, self).process()

assProxy = cmds.sets(name=instance + "_proxy_SET", empty=True)
cmds.sets(assProxy, forceElement=instance)
132 changes: 0 additions & 132 deletions openpype/hosts/maya/plugins/load/load_abc_to_standin.py

This file was deleted.

Loading