Hey Substancers,
I had an idea for a technical custom node (some kind of a blend node) that has changing parameters depending on a preset.
For example: I want adjustable input numbers and several parameters changing accordingly in the background. Like different masks for each input etc.
Would be great if you could give me a hint for a starting point. I know there is the 'create node from selection' option, but I think my idea is to complex for the standard node editor.
I appreciate every input,
have a nice day
Finn
Replies
I will defently look into the documentation, maybe I can figure something out on my own.
If anyone has some knowledge inside the function editor, I would be happy about a hint how I would start doing a custom node like this.
The input parameter functions work the same as pixel processor and fx-map functions so it'll all be familiar.
But I need a starting point...
You won't be able to dynamically choose the maximum number of inputs but you can choose the number displayed up to a preset maximum
If you feed all channels into a pixel processor you can simply tell it to output ..
input 1 if $pos.x < 1/numberofinputs
Input 2 if $pos.x > 1/numberofinputs && $pos.x < 2*1/numberofinputs
Etc. (obviously that's just typed out on a phone and probably won't work as written)
So divide 1 (for the whole matrix) through the number of inputs to get the crop size for the first input.
I created a Pixel Processor, fed my material maps in, and tried to create pos.x value.
I used float 1 (I guess that's right, because the pos.x value is the x-value of the matrix that we work with so one value)
Edit:
But I was wrong - I have to use get float 2 for the pos value. How do I get the pos.x value from there?
also, how do I get the number of inputs?
also, how do I even get the inputs?
Thanks for alot helping me !