luaexpression_menu.txt

(1 KB) Pobierz
-- list of property animation components that can be added in between properties 

-- Lua expressions

<SEP>
Assign Bool (OutBool1 = InBool1) <-> editor.ExternalUI.addCustomComponentConnectionBetweenInputOutput("CustomLuaExpressionComponent", "InBool1", "OutBool1", { Expression="OutBool1 = InBool1" } ) <-> EditorOnly,PropIn=Bool,PropOut=Bool
Assign Int (OutInt1 = InInt1) <-> editor.ExternalUI.addCustomComponentConnectionBetweenInputOutput("CustomLuaExpressionComponent", "InInt1", "OutInt1", { Expression="OutInt1 = InInt1" } ) <-> EditorOnly,PropIn=Int,PropOut=Int
-- TODO: assign other types...

<SEP>
Inverse factor (OutFloat1 = 1.0 - InFloat1) <-> editor.ExternalUI.addCustomComponentConnectionBetweenInputOutput("CustomLuaExpressionComponent", "InFloat1", "OutFloat1", { expression="OutFloat1 = 1.0 - InFloat1" } ) <-> EditorOnly,PropIn=Float,PropOut=Float
-- Clamp factor between 0.0 and 1.0 (...) <-> editor.ExternalUI.addCustomComponentConnectionBetweenInputOutput("CustomLuaExpressionComponent", "InFloat1", "OutFloat1", { expression="OutFloat1 = 1.0 - InFloat1" } ) <-> EditorOnly,PropIn=Float,PropOut=Float
-- Clamp percentage between 0 and 100 (...) <-> editor.ExternalUI.addCustomComponentConnectionBetweenInputOutput("CustomLuaExpressionComponent", "InInt1", "OutInt1", { expression="OutInt1 = 1.0 - InInt1" } ) <-> EditorOnly,PropIn=Int,PropOut=Int

-- TODO: support for creation of chains of multiple components in a single call todo...
-- see startInputOutputChain(...) etc.
Zgłoś jeśli naruszono regulamin