Hello, everyone

I'm kind of new here, and I'm learning scripting in Maya. I'm trying to 
create a UI with the Create Node Menu on the left and the Node Editor on 
the right. For the most part, I have the script done, but the problem is 
how it turns out - the menus are really small and I can't seem to fix them. 
Can anyone help me with this. Here's the script:

import maya.cmds as cmds
class TextureUploaderUI(object):
    def __init__(self):
        self.winName = "PSD_In"
        
        if cmds.window(self.winName, exists=True):
            cmds.deleteUI(self.winName, window=True)
        self.window = cmds.window(self.winName, title="Texture Upload", 
resizeToFitChildren=True)
        mainLayout = cmds.rowLayout(numberOfColumns=2, columnWidth = [(1, 
100), (2, 500)] )
        col1Layout = cmds.columnLayout(adj=True, rowSpacing=10, 
columnWidth=250)
        cmds.scriptedPanel(type="createNodePanel", label="Select Material")
        cmds.setParent(mainLayout)
        col2Layout = cmds.columnLayout(adj=True)
        cmds.scriptedPanel(type="nodeEditorPanel", label="Texture Editor")
        cmds.setParent(mainLayout)
        #cmds.formLayout(form, e=True, af=[(p,s,0) for s in 
("top","bottom","left","right")])
        #commandBTN = cmds.button(label="Create!", c=self.makeSpans)
            
        cmds.showWindow(self.window)
    
TextureUploaderUI()


Run it in Maya and see for yourself. Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/d1f07d23-8800-45f4-9d69-ec5a6de33b3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to