Hi everybody.
My experience with Fusion is peripheral so far; I have though excessive experience with AfterEffects (bah!), Shake and Combustion. Anyway, I downloaded and installed the demo and I like a lot what I see. 
The reason I have to learn another comp app now is that I have a new customer who are in the pre-production phase for a feature. They use solely Fusion for comp work. They asked me to write a few scripts for them, to automate some of their more boring tasks.
I must say that the DF Script docs a bit thin. In particular, four example scripts are a joke imho (I don’t really count in those scripts spread through the reference docs to illustrate single functions). Or is this shortage of example scripts related to the fact that I only have the demo? I btw. downloaded the demo in late december. Maybe there are updates available to the scripting/docs already?
As a TD I’m certainly fluent in a dozen programming- and scripting languages; so Lua itself is not the problem I have.
Here go my questions:
-
How can I find the tool connected to an input of a tool? I have everything in place, but I can’t find a way to get the connected input tool. There is the ‘INPB_Connected’ Attribute, but it only tells me that there actually is a connection, not what is connected. How do I get a handle to the tool that provides the output connected to my tool’s input?
To be more precise – I need a way to recursively scan the flow upstream from its resp. last tool (usually a saver).
[Recursive scanning through a flow is a must have example in the docs imho] -
How can I get transformations (a path) connected to a tool (similiar to question 1).
I need to scan the paths for direction changes and curvature changes. That is, I also need first and second order derivatives of a path. If DF Script can’t provide these, I have to evaluate the path at different (non local) times to approximate these myself. It may also mean I have to advance or play back time in steps smaller than one frame. -
Is there a way to call the File->Import command via DF Script to have fusion generate that flow from a multi-layer PSD file?
Thanks in advance,
Moritz

