It seems it's a bug, but I'm not sure for now.
But for now you can use this workaround:
pm.windows.modelEditor('modelPanel4', edit=True, polymeshes=True)
cya!
2012/5/4 oglop <[email protected]>
> import pymel.core as pm
> p = pm.ui.PyUI('modelPanel4')
> # Result: ui.ModelEditor('modelPanel4|modelPanel4') #
> p is a modelEditor instance
> why can't i use p.setPolymeshes(False) ? thanks
> # Error: RuntimeError: file /fuck/pymel-1.0.3/pymel/internal/pmcmds.py
> line 134: modelEditor: Object 'modelPanel4|modelPanel4' not found. #
>
> tried on linux, windows maya 2011 ( pymel 1.0.3 ) / 2013 ( pymel 1.0.4 )
>
> --
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings:
> http://groups.google.com/group/python_inside_maya/subscribe
>
--
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings:
http://groups.google.com/group/python_inside_maya/subscribe