how do i call a procedure from outside ( menu of maya) class xyz(): .. cmds.button( label = ‘C..r..e..a..t..e’ , command = ‘a.createLayer()’)
generally it is a = xyz() a.showwindow() when doing so from the menu an error occurs “# Error: name ‘a’ is not defined”. how is it possible to call any procedure from outside.
