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.