round protrusion sphere Thorns sphere 3d model
つぶつぶのついた球を探したけどなくてpythonで作ったよ
#sphire_vertex_position_shpire.py
BaseSphere=cmds.polySphere(sx=25, sy=12, r=6,axis=[0,0,0])
BaseSphere=BaseSphere[0]
print("BaseSphere= "+str(BaseSphere))
import maya.cmds as cmds
def get_vertex_positions(obj_name):
vertex_positions = []
vertices = cmds.ls(obj_name + '.vtx[*]', fl=True)
for vertex in vertices:
pos = cmds.xform(vertex, q=True, ws=True, t=True)
vertex_positions.append(pos)
return vertex_positions
vertex_positions = get_vertex_positions(BaseSphere)
print(vertex_positions)
for v_pos in vertex_positions:
mySphere=cmds.polySphere(sx=15, sy=10, r=1)
cmds.xform(mySphere, translation=(v_pos[0],v_pos[1],v_pos[2]) ,absolute=1,worldSpace=1)