
Animation:Masterの開発元であるHash Inc.にあるバージョン10.0のドキュメント、
About Expression Objectsを翻訳しました。これは非公式なものですので、
この翻訳に関する問い合わせをArtwareやHashへはしないようにおねがいします。
Animation Master:技術資料
Animation Master: Technical Reference
エクスプレッションオブジェクトについて
About Expression Objects
エクスプレッションは、ユーザによって定義されたファンクションを使ってプロパテ
ィの値をコントロールすることを可能にします。
このエクスプレッションは、お好みに応じてシンプルにも複雑にもなり得ます。これ
はカメラのフォーカルレングスを他のカメラのものと
同じにするファンクションだったり、あるいはサイン(sine)ファンクションを使っ
た壁の赤いライトといったものになり得ます。
(コレオグラフィかアクションにおいて)オブジェクトインスタンスのプロパティに
エクスプレッションを追加するには、
エクスプレッションを追加したいプロパティを右クリック(MacだとControl-クリッ
ク)し、Edit Expression(エクスプレッションの編集)
を選択します。エクスプレッションオブジェクトが新規に作成され、編集できるよう
に自動的に選択された状態となります。
ここにエクスプレッションを書き込みます。
Expressions allow you to control the value of a property via a user defined
function. This expression can be as simple or complex as you want. It might
be a function to make one camera's focal length equal that of another
camera, or maybe a pulsing red light on a wall using a sine function.
To add an expression to a property of an object instance (either in a
choreography or an action), right click (Control-click on the Mac) the
property you wish to add the expression to, and choose Edit Expression. A
new expression object will be created, and it will automatically be
selected for editing. This is where you type your expression.
エクスプレッションの編集時には、エクスプレッションに他のプロパティの値を使用
することができます。
これは、プロパティの相対的な名前(relative name)をタイプするか、ツリーから他
のプロパティを選択することでおこなうことができます。
また、エクスプレッション名の右側にあるファンクション(function)ボタンをクリ
ックしてファンクションのリストからこれを選択したり、
自分自身でファンクションをタイプすることもできます。
When editing an expression, you can use values of other properties within
your expression. You can do this by either typing the relative name of the
property, or just selecting the other property from the tree. You can also
choose from a list of functions by clicking the function button just to the
right of the expression's name, or typing the function yourself.
以下は、エクスプレッションの記述時に利用することの出来るファンクションです:
Here is a list of functions available when writing an expression:
ファンクション 説明
Function Description
Abs( n ) nの絶対値を返します(nの符号無し)。
Abs( n ) Returns the absolute value of n (n without its sign).
ACos( n0...1 ) 0〜Piラジアンの範囲でアークコサインを返します。アークコサイン
は、コサインがnであるときのその角度です。
ACos( n0...1 ) Returns the arccosine of n in the range of 0 to Pi radians.
The arccosine is the angle whose cosine is n
ASin( n0...1 ) -Pi/2〜Pi/2ラジアンの範囲でnのアークサインを返します。
ASin( n0...1 ) Returns the arcsine of n in the range of -Pi/2 to Pi/2 radians.
ATan( n ) -Pi/2〜Pi/2ラジアンの範囲でnのアークタンジェントを返します。
ATan( n ) Returns the arctangent of n in the range of -Pi/2 to Pi/2 radians.
ATan2( y, x ) Piを除く-Pi〜Piの範囲で、特定のx、y座標におけるアークタンジェン
トを返します。
ATan2( y, x ) Returns the arctangent of the specified x and y coordinates,
in the range of -Pi to Pi radians, excluding Pi.
Ceiling( n ) nをもっとも近い整数に切り上げます。1.2は2に、-1.2は-1になります。
Ceiling( n ) Rounds n up to the nearest whole number, where 1.2 becomes 2, and -1.2 becomes -1.
Cos( radians ) ラジアンによって指定された角度のコサインを返します。
Cos( radians ) Returns the cosine of an angle specified in radians.
Exp( power ) eのあたえられたべき乗を返します。
Exp( power ) Returns e raised to the power given.
Fact( n>1 ) nの階乗を返します。1*2*3*....*nに等しいです。
Fact( n>1 ) Returns the factorial of n, equal to 1*2*3*...*n.
Floor( n ) nを最も近い整数へ切り下げます。1.2は1に、-1.2は-2になります。
Floor( n ) Rounds n down to the nearest whole number, where 1.2 becomes 1,
and -1.2 becomes -2.
GetTime() アクション中での相対時間を返します。コレオグラフィーでは、コレオグラ
フィーの時間と同一です。
GetTime() Returns the relative time within the action. When in a
choreography, this is equal to the chor's time.
Ln( n>0 ) nの自然対数を返します。
Ln( n>0 ) Returns the natural logarithm of n.
Log( n>0, base>0 ) 特定の底における対数を返します。
Log( n>0, base>0 ) Returns the logarithm of n to the base you specify.
LogTen( n>0 ) nの10の対数を返します。
LogTen( n>0 ) Returns the base-10 logarithm of n.
Max( a, b ) 2つの引数のうち、大きいほうを返します。
Max( a, b ) Returns the larger of the two arguments.
Min( a, b ) 2つの引数のうち、小さいほうを返します。
Min( a, b ) Returns the smaller of the two arguments.
Mod( n, divisor<>0 ) nをdivisorで割ったときの余りを返します。
Mod( n, divisor<>0 ) Returns the remainder after n is divided by the divisor.
Pi() Piの値、3.14159265358979を返します。
Pi() Returns the value of Pi, 3.14159265358979.
Rand() 0に等しいか大きく、1より小さな乱数を返します。コレオグラフィーの現在時
間を種とします。
Rand() Returns a random number greater than or equal to 0 and less than 1,
seeded off the choreography's current time.
Round( n, modulo<>0 ) moduloで指定されたもっとも近い数に丸めます。
Round( n, modulo<>0 ) Round n to the nearest number specified by modulo.
Sign( n ) nの符号を返します:数が正の数であれば1、数がゼロであれば0、負であれ
ば-1を返します。
Sign( n ) Returns the sign of n: 1 if the number is positive, 0 if the
number is zero, and -1 if the number is negative.
Sin( radians ) ラジアンで指定された角度のサインを返します。
Sin( radians ) Returns the sine of an angle specified in radians.
Sqrt( n>0 ) nの平方根を返します。nは0より大きくなければいけません。
Sqrt( n>0 ) Returns the square root of n. n must be greater than 0.
Tan( radians ) ラジアンで指定された角度のタンジェントを返します。
Tan( radians ) Returns the tangent of an angle specified in radians.
Trunc( n ) nの少数、分数、数の一部を切り捨て、整数にします。
Trunc( n ) Truncates n to an integer by removing the decimal, or
fractional, part of the number.
内容がうそ、おおげさ、まぎらわしい時にはメールでご一報を。
ダヨナ・マルチメソのインデックスへジャンプ