AviSynth Syntax - Cast to function object ========================================= Func ~~~~ :: Func( script_function ) Converts an internal function to a valid function object. For some functions (e.g. ScriptClip) it is convenient to use their "function object" parameter version. With this function an internal function can be converted into it. See also: :doc:`Function objects ` :: # write frame properties with function object ScriptClip("""propSetInt("frameprop_from_str",func(YPlaneMax))""") # write frame properties with traditional script string ScriptClip(function[](clip c) { propSetInt("frameluma_sc_func",func(AverageLuma)) }) Changelog ~~~~~~~~~ +----------------+------------------------------------------------------------+ | Version | Changes | +================+============================================================+ | Avisynth 3.6.0 | Added function objects | +----------------+------------------------------------------------------------+ -------- Back to :doc:`Internal functions `. $Date: 2025-02-25 17:06:49-05:00 $ .. _planar: http://avisynth.nl/index.php/Planar .. _memory alignment used in the AVIFile output emulation (not yet written): http://avisynth.nl/index.php/AVIFile_output_emulation