Author Topic: Question about setting up inputs on custom nodes  (Read 1461 times)

Some of the core nodes only reveal an additional input slot if the first one is filled. I would like to set up this function in my own custom nodes. Could someone please tell me how to do this?
I noticed a 'visible if' slot and read about it in the manual, but am still not exactly sure how it works. It's something I'd probably use more often, but I can't find a tutorial specifically on using it.
Thanks in advance :)
3D art is magic.

Hey pawnswizard,

the VisibleIf-function is simply a description about the visibility of a node or a parameter.
It is driven by the values (inputs) of parameters, this is why you'll need to start with 'input["name"]'.

You can't make primary inputs visible based on other primary inputs, unfortunately. The 'input' just works with Integer, Float and Boolean values. What you can do, though, is to create a Drop-Down list or something else that will let you choose how many primary inputs you want (like in the multi switch nodes)

Hope that helps

Best Regards
Environment Artist - Twitter

Thanks, i'll look into it. Time to do some experimenting.
3D art is magic.