我设法从python插入了形状键:

ob = Scene.GetCurrent().object.active;
if(ob.activeShape == 0):
   ob.insertShapeKey()
   ob.insertShapeKey()

现在如何更改钥匙值?

有帮助吗?

解决方案

好的,这是我的做法:

#get the key
k = ob.getData().getKey()
#create a new Ipo
ni = Ipo.New('Key','ni')
#if there check if there already a key by that name, otherwise add key
if(k.ipo['Key 1'] == None):   k.ipo.addCurve('Key 1')
#add a point to the 'Key 1' ipo curve
k.ipo['Key 1'].append(BezTriple.New(6.0,0.8,0.1))

就是这样。第一个shapekey插入创建“基础”,然后添加键,“键1”是默认名称

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top