- 114 名前:名無しさん@お腹いっぱい。 mailto:sage [2010/04/22(木) 01:12:42 ID:X4otMl4k0]
- >>110
うp主さんじゃないけど、とりあえず適当に書いてみたサンプルコード。ちと長いので2レスで。 //エフェクトのエクスプレッションに記述して下さい。 // 試しに自エフェクトのプロパティをモニタしてみる。 // Monitorに追加されたプロパティは、左側の「表示」の「プロパティ」の所で見れるようになる。 PropertyBase[] props = property.GetProperties(thisItem); foreach(PropertyBase prop in props){ Monitor.Add(prop); } // IExpressionItemのParentItemは // ・エフェクトの場合→所属するレイヤー // ・レイヤーの場合→所属するコンポジション // になるらしい。試しに所属レイヤーのプロパティをモニタしてみる。 IExpressionItem thisLayer = thisItem.ParentItem; PropertyBase[] layerProps = property.GetProperties(thisLayer); foreach(PropertyBase layerProp in layerProps){ Monitor.Add(layerProp); } // 5秒かけて所属レイヤーの不透明度を100→0に変化させてみる。timeは時間を表しており、単位は秒。 NumberProperty toumei = (NumberProperty)property.GetProperty(thisLayer,"不透明度"); toumei.DoubleValue = 100-time*20;
|

|