You can use the API to perform the programmatic equivalent of a marquee selection across the entire active viewport:
import maya.cmds as cmds import maya.OpenMaya as om import maya.OpenMayaUI as mui view = mui.M3dView.active3dView() x = view.portWidth() y = view.portHeight() om.MGlobal.selectFromScreen(0, 0, x, y, om.MGlobal.kReplaceList) # Either get the string dag paths print cmds.ls(sl=True, l=True) # Or do what you want with the selection list object sel = om.MSelectionList() om.MGlobal.getActiveSelectionList(sel) On Sep 20, 2013, at 9:22 PM, Arjun Thekkummadathil wrote: > Hi > How to do we find if an object is inside camera frustum or not in maya, Do > we need to use some kind of API functions for this?? > > thanks > > -Arjun > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
