关于pymxs这个py模块,简单的这么一记录吧
import pymxs
rt = pymxs.runtime
at = pymxs.attime
t = rt.Teapot()
print rt.classOf(t)
with pymxs.animate(True):
with at(1):
t.pos = rt.point3(2,2,2)
with at(12):
t.pos = rt.point3(10,10,10)
with at(21):
t.pos = rt.point3(20,20,20)
import pymxs
rt = pymxs.runtime
# Create and visit a MaxScript Array
rt.execute(" gma = #(1,2,3)")
print rt.gma #output: #(1,2,3)
len(rt.gma) #output: 3
rt.gma[1] = 999
rt.Print(rt.gma[1]) #output: 999
l = list(rt.gma) #[1,999,3]
l[2] = 888
print l #output: [1, 888, 3]
print rt.gma # output: #(1, 999, 3)
# Create a MaxScript Array via python sequence
ma = rt.Array(*(1, 2, 3))
print ma #output: #(1,2,3)
关于用pymxs使用多线程的话,看看官方的例子就好了