mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
remove defautl cameras from renderable cameras
This commit is contained in:
parent
dc527e3c5e
commit
289c0ffa06
1 changed files with 7 additions and 0 deletions
|
|
@ -45,6 +45,13 @@ class MayaTemplateBuilder(AbstractTemplateBuilder):
|
|||
cmds.sets(name=PLACEHOLDER_SET, empty=True)
|
||||
new_nodes = cmds.file(path, i=True, returnNewNodes=True)
|
||||
|
||||
# make default cameras non-renderable
|
||||
default_cameras = [u'perspShape']
|
||||
for cam in default_cameras:
|
||||
if not cmds.objExists("{}.renderable".format(cam)):
|
||||
continue
|
||||
cmds.setAttr("{}.renderable".format(cam), 0)
|
||||
|
||||
cmds.setAttr(PLACEHOLDER_SET + ".hiddenInOutliner", True)
|
||||
|
||||
imported_sets = cmds.ls(new_nodes, set=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue