plz help me (python to mel)


#1

i want to select by camera in maya

so… i find to python so how to change it?

import maya.OpenMaya as om
import maya.OpenMayaUI as omu

view = omu.M3dView.active3dView()
om.MGlobal.selectFromScreen(0, 0, view.portWidth(), view.portHeight(), om.MGlobal.kReplaceList)

it python code…

plz… change to mel code…


#2

Python can access the API, MEL can’t. But you can execute Python code from MEL.