Dec-20-2021, 03:59 AM
(This post was last modified: Dec-20-2021, 07:11 AM by Gribouillis.)
Hello Guys,
I'm hoping anyone can help an ignorant modeler. I haven't done much coding since I was in school, and I was trying to create a tool that would allow me to make Roof tiles for numerous buildings in my scene. The only ones I can find online were MEL based and was trying to create it myself... started building it.. and I'm lost in my functions, all I've really built is my window. Help anyone, in anyway. Guidance, or what you would do etc.
I'm hoping anyone can help an ignorant modeler. I haven't done much coding since I was in school, and I was trying to create a tool that would allow me to make Roof tiles for numerous buildings in my scene. The only ones I can find online were MEL based and was trying to create it myself... started building it.. and I'm lost in my functions, all I've really built is my window. Help anyone, in anyway. Guidance, or what you would do etc.
cmds.window(title='Roof Tile Creator',sizeable=False, resizeToFitChildren=True, backgroundColor=[0,0,0]) cmds.rowColumnLayout(numberOfColumns=1) #Master Layout cmds.rowColumnLayout(numberOfColumns=1)#Layout A cmds.text(width=100, height=20, label='Select GEO for Tile', backgroundColor=[0,255,0]) cmds.setParent('..') cmds.rowColumnLayout(numberOfColumns=1)#Layout B cmds.text(width=80, height=20, label='Rotate & Position the GEO on the Z axis',backgroundColor=[255,165,0]) cmds.rowColumnLayout(numberOfColumns=2, backgroundColor=[0,0,0])#Layout C cmds.text(width=80, height=20, label='Row') cmds.intSliderGrp(width=150, height=12.5, field=True,minValue=0, maxValue=999, value=1 ) cmds.setParent('..') cmds.rowColumnLayout(numberOfColumns=2)#Layout D cmds.text(width=80, height=20, label='Column') cmds.intSliderGrp(width=150, height=12.5, field=True, minValue=0, maxValue=999, value=1) cmds.setParent('..') cmds.rowColumnLayout(numberOfColumns=2)#Layout E cmds.text(width=80, height=20, label='Height Offset') cmds.intSliderGrp(width=150, height=12.5, field=True, minValue=0, maxValue=4, value=1.5) cmds.setParent('..') cmds.rowColumnLayout(numberOfColumns=1)#Layout F cmds.button(label='Create', width=80, height=15) cmds.showWindow()