how to creat a model?

MakeHuman python API, python plugins, etc

Moderator: joepal

how to creat a model?

Postby yfjelley » Tue Apr 15, 2014 6:50 am

how can i do creat a npz file(base.npz),
i want to a new model,
but hao to creat obj,
what is the obj?



def saveBinaryMesh(obj, path):
85 fgstr, fgidx = packStringList(fg.name for fg in obj._faceGroups)
86
87 vars_ = dict(
88 coord = obj.coord,
89 vface = obj.vface,
90 nfaces = obj.nfaces,
91 texco = obj.texco,
92 fvert = obj.fvert,
93 group = obj.group,
94 fgstr = fgstr,
95 fgidx = fgidx)
96
97 if obj.has_uv:
98 vars_['fuvs'] = obj.fuvs
99
100 np.savez(path, **vars_)
yfjelley
 
Posts: 3
Joined: Tue Apr 15, 2014 3:16 am

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest