Hello to all.
I’m trying to write a couple of “utility nodes”. (mostly for things that can be done with multiple nodes already, but I’d love single nodes for ease of use)…All of these are essentially “input parameters” for gradient ramps (lightwave style).
(feed the output of my pynodes as input to gradient ramps. and from there to wherever!)
“Slope” and “Camera incidence” are easy, but I’d like to do “light incidence” and offer a pulldown list for the user to pick one of the lights in the scene. Same for “Distance to object”, though for this I’d also want to map the range, so…
1)Is it possible/how do I offer user buttons/pulldown lists in a pynode? (or do I just expect the user to edit the text?)
- Is it possible to “register” a pynode (so it is always available, even in new blends?)
EDIT: Duh, I can use PupMenu or PupBlock in the init section, so that’s sorted. It’d be nice to be able to print some info on the node to reflect choices though, but not a big problem! Anyone know about “registering” though?