0

以下を使用して、Python からシェイプ キーを挿入することができました。

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

キー値を変更するにはどうすればよいですか?

4

1 に答える 1

0

これが私がそれをした方法です:

#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」がデフォルト名です。

于 2010-07-01T10:11:45.103 に答える