home *** CD-ROM | disk | FTP | other *** search
- /*
- * Composite_Matte.ifx.pre
- * Written by Thomas Krehbiel
- *
- * Composite tool.
- *
- * Inputs:
- * Word(Arg(1),1) = Sequence number
- * Word(Arg(1),2) = Total number of frames (N)
- *
- * Returns:
- * 0 if successful, non-zero on failure
- *
- */
-
- OPTIONS RESULTS
-
- base = 'Autofx_CompositeMatte_'
-
- blendv = GETCLIP(base||'Blend')
- matter = GETCLIP(base||'MatteR')
- matteg = GETCLIP(base||'MatteG')
- matteb = GETCLIP(base||'MatteB')
- close = GETCLIP(base||'Close')
-
- IF blendv = '' THEN blendv = 50
- IF matter = '' THEN matter = 0
- IF matteg = '' THEN matteg = 0
- IF matteb = '' THEN matteb = 0
- IF close = '' THEN close = 1
-
- Gadget.1 = 'INTEGER 150 5 50 14 "Blend %:"' blendv
- Gadget.2 = 'INTEGER 150 20 50 14 "Matte R:"' matter
- Gadget.3 = 'INTEGER 225 20 50 14 "G:"' matteg
- Gadget.4 = 'INTEGER 300 20 50 14 "B:"' matteb
- Gadget.5 = 'INTEGER 150 35 50 14 "Closeness:"' close
- Gadget.6 = 'END'
-
- NewComplexRequest '"Composite Matte Options"' Gadget 380 54
- IF rc ~= 0 THEN EXIT rc
-
- CALL GETCLIP(base||'Blend', result.1)
- CALL GETCLIP(base||'MatteR', result.2)
- CALL GETCLIP(base||'MatteG', result.3)
- CALL GETCLIP(base||'MatteB', result.4)
- CALL GETCLIP(base||'Close', result.5)
-
- EXIT
-