Hello,

I’m having a bit of trouble passing a list to a proc from a ui button
from python in maya.  Something like the following….

    import maya.cmds as cmds

    def someDef(someList):
        print someList

    #build a ui here and add a button .

    cmds.button(command=someDef(someList))

I’m getting # TypeError: Invalid arguments for flag 'command'.
Expected string or function, got NoneType #

What's the best way to pass a list to a proc when hitting a button?

Thanks!!!!
Doug



Any help would be appreciated! Thanks!



Doug Brooks




--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to