mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
code tweaks on default shader grp
This commit is contained in:
parent
b40cba0801
commit
584341dcef
1 changed files with 2 additions and 7 deletions
|
|
@ -139,13 +139,8 @@ class RedshiftProxyLoader(load.LoaderPlugin):
|
||||||
|
|
||||||
# TODO: use the assigned shading group as shaders if existed
|
# TODO: use the assigned shading group as shaders if existed
|
||||||
# assign default shader to redshift proxy
|
# assign default shader to redshift proxy
|
||||||
shader_grp = next(
|
if cmds.ls("initialShadingGroup", type="shadingEngine"):
|
||||||
(
|
cmds.sets(mesh_shape, forceElement="initialShadingGroup")
|
||||||
shader_group for shader_group in
|
|
||||||
cmds.ls("initialShadingGroup", type="shadingEngine")
|
|
||||||
)
|
|
||||||
)
|
|
||||||
cmds.sets(mesh_shape, forceElement=shader_grp)
|
|
||||||
|
|
||||||
group_node = cmds.group(empty=True, name="{}_GRP".format(name))
|
group_node = cmds.group(empty=True, name="{}_GRP".format(name))
|
||||||
mesh_transform = cmds.listRelatives(mesh_shape,
|
mesh_transform = cmds.listRelatives(mesh_shape,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue