Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Layout dialog with parameters?
  RSS 2.0 ATOM  

Layout dialog with parameters?
Rate this thread
 
62652
 
Permlink of this thread  
avatar
  • Total Posts: 22
  • Joined: 27 February 2008 10:31 PM

one quick stupid question: can i pass parameters to a layoutDialog?
i have something like this:

def chooseSavePath(l):
        print 
l
        form 
cmds.setParent(q=True)
        
cmds.formLayout(forme=Truewidth=500)

which i call with this:

cmds.layoutDialog(ui=chooseSavePath("lalala"))

the line :

cmds.formLayout(forme=Truewidth=500)

generates the following error:

Error: RuntimeError: file <maya console> line 6: Object ‘MayaWindow|MainAttributeEditorLayout|formLayout2|AEmenuBarLayout’ not found.

If i get rid of the argument it works… How should i do it in order for it to work?



Replies: 0
avatar

never mind i found the solution :)



Replies: 0