Trying to recreate Multishader with Switch rgba - how to transcend 20 limit?

Trying to recreate Multishader with Switch rgba - how to transcend 20 limit?

daniel2SH2D
Advocate Advocate
891 Views
4 Replies
Message 1 of 5

Trying to recreate Multishader with Switch rgba - how to transcend 20 limit?

daniel2SH2D
Advocate
Advocate

Hi there,

I need to assign an old C4D multishader to a deck of cards, so that each clone in a cloner gets the next card in the image sequence. 78 images total.

I'm using user-data-int and a switch-rgba feeding the Diffuse of a standard surface with all the generic settings I want globabally throughout the pack, and so far so good...but I can't work out how to transcend this limit of 20 inputs in the switch-rgba...

Any tips?

Many thanks

 

Daniel

0 Likes
Accepted solutions (2)
892 Views
4 Replies
Replies (4)
Message 2 of 5

daniel2SH2D
Advocate
Advocate

There's a tut from Lee Griggs on Youtube that shows how to do with a Made-Editable cloner where you use user-data-string node in a node material, which looks promising...but is there a way to concatenate strings and leave the cloner as a cloner?

 

I can rename the image files to be sequential numbers like the cloner ID's and I've worked out how to feed that to the image name, but it requires the filepath...So how could I 'add' the filpath string to the cloner ID string and output a full filepath? 🤔

Probably also need the .png string to complete as well, yikes.

0 Likes
Message 3 of 5

daniel2SH2D
Advocate
Advocate
Accepted solution

https://forums.autodesk.com/t5/arnold-for-cinema-4d-forum/multi-texture-shader-to-cloner-objects/td-...

There seems to be a working solution in this thread ☝️...

I'll test it and come mark the thread closed if it indeed works 🙂

0 Likes
Message 4 of 5

peter_horvath
Autodesk
Autodesk
Accepted solution

Unfortuntely, you can not concatenate strings in the shader graph. Probably your best option is the switch_rgba, driven by the clone 'index'. You can find an example in the docs of how to extend the switch node: https://help.autodesk.com/view/ARNOL/ENU/?guid=arnold_for_cinema_4d_ci_Shaders_ci_Utility_Shaders_ht...


// Peter Horvath
// C4DtoA developer
0 Likes
Message 5 of 5

daniel2SH2D
Advocate
Advocate

Thanks Peter - I found your thread from December last year that covered exactly this, works like a charm 🙂