Creating a pyramid
jaden programming » Devlog
import maya.cmds
def Pyramid():
cmds.polyCube(w=1, h= 1, d= 1)
cmds.scale(4,4, scaleXZ = True)
cmds.polyCube(w=1, h= 1, d= 1)
cmds.move(1 ,moveY = True)
cmds.scale(3,3, scaleXZ = True)
cmds.polyCube(w=1, h= 1, d= 1)
cmds.move(2 ,moveY = True)
cmds.scale(2,2, scaleXZ = True)
cmds.polyCube(w=1, h= 1, d= 1)
cmds.move(3 ,moveY = True)
#######################################################
Pyramid()
this code shows you how to make a pyramid in Maya using python code. in a line format.
the top part is the main code and I have separated the main code using hashtags.
I have also used a function called pyramid which will allow me to call all of the code.
jaden programming
More posts
- adding delete button to windowNov 28, 2022
- how to add a intslider to buttonNov 21, 2022
- create pyramid using a loop and then adding buttonNov 14, 2022
- simple commandsNov 14, 2022
- QuizNov 14, 2022
- how to code cubes that move in incrementsOct 17, 2022
- how to add a function to a button in a windowOct 17, 2022
- 10/10/2022Oct 17, 2022
Leave a comment
Log in with itch.io to leave a comment.