본문 바로가기
College Study/Maya (KR,ENG)

[Maya] 파이썬으로 모델링하기 (랜덤하게 위치하는 구) Modeling with Python (Random-moved Spheres)

by 2den 2020. 11. 7.
728x90

2019. 3. 11. 21:49

 

import maya.cmds as cmds
import random

myspheres=[]

for i in range(100):
    myspheres.append(cmds.polySphere())

for j in myspheres:
    cmds.move(random.randint(1,10), random.randint(1,10), random.randint(1,10), j)

 

maya.cmds를 활용한 첫번째 모델이다. 

my first model made with maya.cmds

728x90

댓글