the prototype function gives the objects created by using the nodeeditor a uniform interface for the processing. Same method names for the various
Knots. So every code of the node creates a type. Later by using the node editor you create objects of these types with a uniform interface of functions.
You can of course use the functions in basicFunctions.js and also create a basicFunctions2.js. You can also write your functions to the same file as your nodes.
For more frequently used functions, it makes sense to store them in a library.
Two additional related questions:
1. Where would a function go in a node? Inside the .prototype.onExecute = function (), or
just before it?
I have not found any examples, as far as I know.
2. Is it necessary to "link" say basicFunctions2.js somewhere? Or is this already set up?
(I have not searched for an example useage of basicFunctions.js yet.)
you can find examples where to place "normal" functions in vector.js. If you want to create a lib of functions you can place it in the libs folder under extensions. Max has made an autoload for files placed in that folder. So no link.
After typing in an equation in the F field, press enter, otherwise the entry goes away.
(Slightly annoying). When typing a more complex equation, save a partly correct entry, then re-edit,
otherwise partial work could be lost.
- Brian
Now with Wayne's latest update to ImgSampler node ( https://moi3d.com/forum/index.php?webtag=MOI&msg=9581.57 ) it's possible to have 3 images of RGB channels (separated in photoshop) output to interleaving dot screens as shown.