Jump to content

Multiparm block.How to add inputs inside VOP dynamically?


Recommended Posts

Hi guys. Completely unknown subj for me.

For example,I have a shader and through  Multiparm block I set the required number of colors.
And then I would like to connect these inputs inside the shader.
How can I add them inside the shader and for example connect to the Switch node or any other for next manipulations?

If anybody fix example file i will be very grateful to him.
Thanks.

multy_block.hipnc

Link to comment
Share on other sites

I don't think you should do that. You can do it with a bit of scripting, check the hip, but it's not a very good idea. You'll never be able to close your asset, let alone compile it (technically you could make each combination an unique shader, but it seems messy to me)

Someone correct me if I'm wrong, but I suppose the "correct" way to do this is do it in SOPs and then just read the attributes inside your shader with bind vop or similar

Again, just to make it clear, this is likely a terrible idea:

2018-08-21_12-04-43.mp4

multy_block.hipnc

Link to comment
Share on other sites

9 hours ago, vtrvtr said:

I don't think you should do that. You can do it with a bit of scripting, check the hip, but it's not a very good idea. You'll never be able to close your asset, let alone compile it (technically you could make each combination an unique shader, but it seems messy to me)

Someone correct me if I'm wrong, but I suppose the "correct" way to do this is do it in SOPs and then just read the attributes inside your shader with bind vop or similar

Again, just to make it clear, this is likely a terrible idea:

2018-08-21_12-04-43.mp4

multy_block.hipnc


Ок.Thank you very much.
I came to the conclusion that then in my case it's easier to make groups of constant inputs and switch between them(the range is not so large, 1-5).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...