Fusion Expression CheatSheet
#Fusion #Blackmagic_Fusion #wip #note
FusionのExpressionはLuaベースのeyeonScriptで書く
fuse(eyeon script) のDocsは VFXPedia に
古いDocsだけど、一応eyeonScriptのDocsはここでアーカイブされている
あとは We suck less のQuickStartとか
Welcome to Scripting and Fuses
カンペ
条件分岐
論理演算子について
「false」と「nil」の両方を「false」と見なし、その他は「true」と見なす
演算子「not」は常に「false」か「true」を返す
条件式
比較演算式の場合は「iif」になる
「=」も「==」も同じ
table:branch
構文 補足
if(c, x, y) もしcがfalseでなければx、違えばyを返す
iif(a+b == c, x, y) 条件式(a+b==c)がtrueがならばx、違えばyを返す
x = y , x == y return x==y
x <> y , x != y, x~=y return x!=y
x < y return x < y
x > y return x > y
x <= y return x<=y
x >= y return x>=y
x & y , x && y, x and y return x AND y
x | y , x || y, x or y return x OR y
!x, not x return NOT x
ノードの出力解像度の取得
node.Output.OriginalWidth & node.Output.OriginaHeight
node.Output.Width & node.Output.Height