mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
cmds.ls returns list
This commit is contained in:
parent
e64779b345
commit
69297d0b68
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ def preserve_modelpanel_cameras(container, log=None):
|
||||||
panel_cameras = {}
|
panel_cameras = {}
|
||||||
for panel in cmds.getPanel(type="modelPanel"):
|
for panel in cmds.getPanel(type="modelPanel"):
|
||||||
cam = cmds.ls(cmds.modelPanel(panel, query=True, camera=True),
|
cam = cmds.ls(cmds.modelPanel(panel, query=True, camera=True),
|
||||||
long=True)
|
long=True)[0]
|
||||||
|
|
||||||
# Often but not always maya returns the transform from the
|
# Often but not always maya returns the transform from the
|
||||||
# modelPanel as opposed to the camera shape, so we convert it
|
# modelPanel as opposed to the camera shape, so we convert it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue