From K-3D
Description
Script node that executes whenever one of its inputs changes
|
Metadata
Properties
Label
| Description
| Type
| Script Name
|
Script
| Script source code
| k3d::string_t
| script
|
Notes
NullOutputScript is a little unusual in that it bypasses the normal execution of the K-3D pipeline - normally, a script (or any other node) only performs calculations "on-demand", when one of its outputs is read by some external entity, such as another node, or the user interface layer. NullOutputScript executes whenever one of its inputs changes. This can be inefficient, since it may execute multiple times if multiple inputs are changing, and because it executes whether any other node is "listening" or not. Despite these shortcomings NullOutputScript can be useful, if data needs to be pushed to some sink that can't make requests (such as the filesystem, a network server, D-BUS, etc). NullOutputScript can also be used to consolidate multiple scripts into one, which can be useful if they share calculations.