Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Layout dialog with parameters?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
317 Views, 2 Replies

Layout dialog with parameters?

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(form, e=True, width=500)


which i call with this:
cmds.layoutDialog(ui=chooseSavePath("lalala"))


the line :
cmds.formLayout(form, e=True, width=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?
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

never mind i found the solution 🙂
Message 3 of 3
obinet
in reply to: Anonymous

Could you share your solution?

 

Thanx

 

S

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report