Talk:Simple Expressions

From VFXPedia

Revision as of 19:52, 1 July 2010 by Chad (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Is there a way with Simple Expressions to get the current render range? GetAttrs isn't dynamic, so I suppose I'm asking if there is a way to dynamically get the render range. --Chad

Is there documentation about tool parameters what can be used in simple expressions? I mean which tool has which kind of attributes. Not only the visible interactive attributes but all of them. Like Input.Width etc. I can't find how can I use the resolution of a Loader since it doesn't have Input.Width but Output.Width (doesn't documented either) and it goes wrong in proxy mode. TIA --Ata 12:20, 16 October 2008 (CDT)

You can use OriginalWidth for that. Both Input and Output are Image objects, so you'll find their attributes in the corresponding section of the scripting reference. --Tilt
Actually, they're Input and Output objects, so you can call Input/Output functions etc from them. However, there's a "shortcut" when used from an expression that queries it for a Parameter at the current time (an implied call to GetValue(time)), so you're really accessing the members of the retrieved Parameter object (in this case an Image). --Daniel

iif(Merge1.Blend > 0.5, 1, 0) - why "iif", not just "if"?

"if" is already taken by Lua for the if-then statement. --Daniel

How do we use tool attributes in simple expressions? Like if I wanted to query the TOOLS_RegID of the Input, or the TOOLNT_Region_End? In my particular case, I'm trying to determine the length of the input in frames. --Chad 10:46, 26 March 2010 (EDT)

How do we get parameters relative to the current inputs? Like I want to get the Transform3DOp.Translate.X from the SceneInput3? --Chad 15:52, 1 July 2010 (EDT)