Sam <[EMAIL PROTECTED]> wrote: >cmds.window(t='gwfUI Builder') >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, >100))) > cmds.paneLayout(configuration='horizontal2') > cmds.frameLayout(l='Layouts') > cmds.scrollLayout(cr=True) > cmds.columnLayout(adj=True, cat=('both', 2)) > for i in layouts: > cmds.button(l=i) > cmds.setParent('..') > cmds.setParent('..') > cmds.setParent('..') > cmds.setParent('..') >cmds.setParent('..') >cmds.showWindow()
An alternative would be to do something like the following: cmds.window(t='gwfUI Builder') cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, 100))) cmds. paneLayout(configuration='horizontal2') cmds. frameLayout(l='Layouts') cmds. scrollLayout(cr=True) cmds. columnLayout(adj=True, cat=('both', 2)) for i in layouts: cmds. button(l=i) cmds. setParent('..') cmds. setParent('..') cmds. setParent('..') cmds. setParent('..') cmds.setParent('..') cmds.showWindow() Stylistically it's not much better, but you don't need to change Python interpreter for it work. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list