mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
Also support locking of camera in CameraLoader in Maya 2017
This commit is contained in:
parent
7c9581e26b
commit
4ab6b530e3
1 changed files with 2 additions and 2 deletions
|
|
@ -29,9 +29,9 @@ class CameraLoader(colorbleed.maya.plugin.ReferenceLoader):
|
|||
cameras = cmds.ls(nodes, type="camera")
|
||||
|
||||
# Check the Maya version, lockTransform has been introduced since
|
||||
# Maya 2017
|
||||
# Maya 2016.5 Ext 2
|
||||
version = int(cmds.about(version=True))
|
||||
if version >= 2017:
|
||||
if version >= 2016:
|
||||
for camera in cameras:
|
||||
cmds.camera(camera, edit=True, lockTransform=True)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue