Hi guys,
I was hoping someone could point me in the right direction for this.

I’m trying to get a list of objects that are visible from the camera, so 
this includes objects that are within the viewport/cameraFrustrum that are 
either completely or partially visible. ie I want to remove objects that 
are completely hidden by other objects.

I thought the API would have some easy methods for this, but I seem to be 
failing at finding anything useful.
The closest I could find was:

import maya.OpenMaya as omimport maya.OpenMayaUI as omuimport maya.cmds as mc

view = omu.M3dView.active3dView()
om.MGlobal.selectFromScreen(0, 0, view.portWidth(), view.portHeight(), 
om.MGlobal.kReplaceList)
print "OM code: ",mc.ls(sl=1)

but that still returns a list of objects that are fully occluded.

Any ideas? It's much appreciated. Thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/5629ea08-ab26-4190-97aa-3275ad044d5c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to