I am looking for a way to convert this MEL line mel.eval('cameraMakeNode 2 "";')
into Python.
I can't find anything in the documentation, is used to convert a camera to camera aim.
I am looking for a way to convert this MEL line mel.eval('cameraMakeNode 2 "";')
into Python.
I can't find anything in the documentation, is used to convert a camera to camera aim.
I hope this finds you well. Here is the code that worked for me:
import pymel.core as pm
pm.mel.cameraMakeNode(3, "")
Perhaps I'm missing something, but doesn't this work?:
import maya.mel
maya.mel.eval("cameraMakeNode 2 '';")