Week 1
Blog TB1 » Devlog
Notes from Week 2
Converting Celcius to Fahrenheit
Celsius = 20
Fahrenheit = (Celsius * 1.8) + 32
print("This is equal to " + str(Fahrenheit ))
Notes from Week 2
Converting Celcius to Fahrenheit
Celsius = 20
Fahrenheit = (Celsius * 1.8) + 32
print("This is equal to " + str(Fahrenheit ))
Comments
Log in with itch.io to leave a comment.
#for creating new window
import maya.cmds as cmds
if cmds.window ("Helooo", exists =True):
cmds.deleteUI ("Helooo")
My_window = cmds.window( title="Long Name", iconName='Short Name', widthHeight=(200, 55) )
cmds.columnLayout( adjustableColumn=True )
cmds.button( label='Do Nothing' )
cmds.button( label='Close', command=('cmds.deleteUI(\"' + My_window + '\", window=True)') )
cmds.setParent( '..' )
cmds.showWindow( My_window )