refactor the redshiftproxy family

This commit is contained in:
Kayla Man 2023-06-06 21:43:22 +08:00
parent 1fcfb414f7
commit 99fbc6dc35
2 changed files with 2 additions and 10 deletions

View file

@ -9,10 +9,3 @@ class CreateRedshiftProxy(plugin.MaxCreator):
label = "Redshift Proxy"
family = "redshiftproxy"
icon = "gear"
def create(self, subset_name, instance_data, pre_create_data):
_ = super(CreateRedshiftProxy, self).create(
subset_name,
instance_data,
pre_create_data) # type: CreatedInstance

View file

@ -2,7 +2,7 @@ import os
import pyblish.api
from openpype.pipeline import publish
from pymxs import runtime as rt
from openpype.hosts.max.api import maintained_selection
from openpype.hosts.max.api import get_all_children, maintained_selection
class ExtractRedshiftProxy(publish.Extractor):
@ -30,8 +30,7 @@ class ExtractRedshiftProxy(publish.Extractor):
with maintained_selection():
# select and export
con = rt.getNodeByName(container)
rt.select(con.Children)
rt.select(get_all_children(rt.getNodeByName(container)))
# Redshift rsProxy command
# rsProxy fp selected compress connectivity startFrame endFrame
# camera warnExisting transformPivotToOrigin