Adam Mechtley wrote:
It obviously depends what you are doing in your final command (i.e. if you are not already using an object list or selection), but another option could be to use objects if your arguments are objects in the DG anyway. Using objects allows your command to accept either an individual object or an object list. For instance:
I use object list/selection already. the thing is, i need multiple object/component selections to be passed to command.
object list or selection defines what command should be modifying;
few optional flags, defined by other component selections, restrict/change command behavior.

i was also considering supplying those optional flags as maya's selection sets, this would only require one identifier per flag.

--
viktoras
www.neglostyti.com


--
http://groups.google.com/group/python_inside_maya

Reply via email to