Lock shape nodes

This commit is contained in:
Roy Nieterau 2022-02-03 13:12:56 +01:00
parent 68d3f9ec3e
commit 6fd4e7cf38

View file

@ -131,6 +131,10 @@ class VRaySceneLoader(api.Loader):
cmds.setAttr("{}.FilePath".format(vray_scene), filename, type="string")
# Lock the shape nodes so the user cannot delete these
cmds.lockNode(mesh, lock=True)
cmds.lockNode(vray_scene, lock=True)
# Create important connections
cmds.connectAttr("time1.outTime",
"{0}.inputTime".format(trans))