mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Create and parent the V-Ray Scene first to transform so that outliner shows VRayScene icon on transform
This commit is contained in:
parent
e7e8235be1
commit
5269510ed9
1 changed files with 2 additions and 2 deletions
|
|
@ -121,10 +121,10 @@ class VRaySceneLoader(api.Loader):
|
|||
|
||||
trans = cmds.createNode(
|
||||
"transform", name=mesh_node_name)
|
||||
mesh = cmds.createNode(
|
||||
"mesh", name="{}_Shape".format(mesh_node_name), parent=trans)
|
||||
vray_scene = cmds.createNode(
|
||||
"VRayScene", name="{}_VRSCN".format(mesh_node_name), parent=trans)
|
||||
mesh = cmds.createNode(
|
||||
"mesh", name="{}_Shape".format(mesh_node_name), parent=trans)
|
||||
|
||||
cmds.connectAttr(
|
||||
"{}.outMesh".format(vray_scene), "{}.inMesh".format(mesh))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue