How do I query the current active camera in the viewport by code?
So the camera you currently see the viewport through?
Solved! Go to Solution.
How do I query the current active camera in the viewport by code?
So the camera you currently see the viewport through?
Solved! Go to Solution.
Solved by g2m.agent. Go to Solution.
import maya.cmds as cmds curCamera = 'persp' for vp in cmds.getPanel(type="modelPanel"): curCamera=cmds.modelEditor(vp,q=1,av=1,cam=1)
see here:
https://stackoverflow.com/questions/27290602/how-to-query-current-viewport-renderer-in-maya
import maya.cmds as cmds curCamera = 'persp' for vp in cmds.getPanel(type="modelPanel"): curCamera=cmds.modelEditor(vp,q=1,av=1,cam=1)
see here:
https://stackoverflow.com/questions/27290602/how-to-query-current-viewport-renderer-in-maya
Can't find what you're looking for? Ask the community or share your knowledge.