TheAdmiral
November 21st, 2011, 09:10 PM
Hey Guys, Im trying to build my first Fuse. I was originally trying to write a script or put together a Marco wasn't really sure how to go about it. Looked around and found info on fuses have found that it will be the best way to go about this? Not quite sure to be honest though. I have been using Fusion in production for 2 years now but haven't had to script at all, so if this is completely ridiculous I apologize in advance :D Bare with me please
I need to create a tool that runs through an image sequence, finds its highest and lowest overall values automatically, then stores them in a variable I can extract for use in normalizing the sequence.
Im not really sure what the best approach is, but this is what I have come up with so far.
The tool needs to take in the GlobalIn and GlobalOut values from the Input. Then normalize that frame range, so that regardless of the sequence range you always have a time at 0.
the tool then checks the time value to see if it is the first frame of the sequence, if it is, then it stores the current highest value in which ever channel you use. If it isnt the first frame then it stores the high value in X.
It compares X to the highest value it has found, stored above, and replaces if needed, or moves on.
It does the same process with the lowest values. (preferably simultaneously)
Finally it displays the highest and lowest values read-only.
Now I do not know anything about lua, so Im basing alot of what I am doing on VEX, PRman, and other fun stuff. Its probably ugly and Im not sure the variables work yet. I am still sifting through the Eyeon docs to get the syntax right aswell, but I wanted to post what I have so far to get any feedback, hate mail, or help available :D Im attaching the .fuse that I have put together. TIA!
(Doesnt allow .fuse, so just change it after dl)
12765
I need to create a tool that runs through an image sequence, finds its highest and lowest overall values automatically, then stores them in a variable I can extract for use in normalizing the sequence.
Im not really sure what the best approach is, but this is what I have come up with so far.
The tool needs to take in the GlobalIn and GlobalOut values from the Input. Then normalize that frame range, so that regardless of the sequence range you always have a time at 0.
the tool then checks the time value to see if it is the first frame of the sequence, if it is, then it stores the current highest value in which ever channel you use. If it isnt the first frame then it stores the high value in X.
It compares X to the highest value it has found, stored above, and replaces if needed, or moves on.
It does the same process with the lowest values. (preferably simultaneously)
Finally it displays the highest and lowest values read-only.
Now I do not know anything about lua, so Im basing alot of what I am doing on VEX, PRman, and other fun stuff. Its probably ugly and Im not sure the variables work yet. I am still sifting through the Eyeon docs to get the syntax right aswell, but I wanted to post what I have so far to get any feedback, hate mail, or help available :D Im attaching the .fuse that I have put together. TIA!
(Doesnt allow .fuse, so just change it after dl)
12765