Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: wabisabi on 2021-01-21, 12:13:24

Title: Clone a node (UVW Randomizer) in Slate Editor
Post by: wabisabi on 2021-01-21, 12:13:24
Hello,

I have found this explanation on the Corona Render Webside, how to use the UVW Randomizer (see attachment).
They say that I have to clone the UVW Randomizer, to geht the same Values in the different slots.
How can I copy the node, so that the values in every copied node of the UVW Randomizer are the same?

Hope someone can help me....thanks, Michael
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: romullus on 2021-01-21, 12:32:26
In slate material editor hold SHIFT and drag any map, or material and it will get cloned.
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: wabisabi on 2021-01-21, 12:51:27
Hi Romullus,
thank you for your answer. But when I copy the UVW Randomizer by holding shift and drag.....when I type in some values into the first node, it does not appear in the copied node.
And that is what I want. I hope you understand my issue. The reason for my question is, that I get the same values from each UVW Randomizer in the different slots...eg: diffuse, refl glos, bitmap and so one.
Thank you
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: TomG on 2021-01-21, 14:42:02
The behavior you see is correct, the clones are copies, not instances.

What you can do is add a UVWRandomizer, then connect Controllers to all the parameters you want to control (so you can change one place, and all copies will get that value for that parameter). Once you have a Controller hooked up to one UVWRandomizer to control every parameter you want to adjust, you can save that someplace for easy reuse. Now when you clone the Randomizer, the connections to the controllers will be maintained, and adjusting the value in the one controller will change the parameter it is connected to in all connected UVWRandomizers.
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: nauticus25 on 2021-01-21, 14:45:14
edit: TomG beat me to it. What he said. :)

This can be done with Linear Float controller nodes. I'm not an expert in controller nodes, so I'm not sure if Linear Float is the best one, but it seems to work. The concept is that you're basically connecting one of the text inputs from the UVW Randomizer out to an external node.

Anyway, right click in Slate, go to Controllers/Float Controller/Linear Float. Drag a connection from the output of this node to your UVW Randomizer map. When you let go, you'll be given a list of all the UVW Randomizer inputs. Choose one, and now whatever you enter in that Controller node will show up in the corresponding spot in the UVW Randomizer map. Add separate Controller nodes for each input you'd like to control.

Now if you clone the UVW Randomizer map (just grab the map, don't grab the controllers), it'll connect up to the original controllers. Now you can enter a value in a controller and it'll update each connected UVW Randomizer map. You can even adjust a value inside a UVW Randomizer map, and if it has a controller connected, it'll update the controller and any other UVW Randomizer map connected to it.

(https://i.imgur.com/mqKEpf6.jpg)
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: TomG on 2021-01-21, 14:52:02
But you had the explanatory picture! So - what they showed :)
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: wabisabi on 2021-01-21, 15:20:27
Thank you TomG, thank you nauticus25,

that was exactly what I was searching for!

Michael
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: nauticus25 on 2021-01-21, 15:41:08
But you had the explanatory picture! So - what they showed :)
(https://media.giphy.com/media/QWwEdgDbYjFbfOMJ3z/giphy.gif)
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: maru on 2021-01-21, 15:49:30
This is also something that we would definitely like to improve. Controlling multiple UVW Randomizer / Triplanar / other nodes at the same time.

(Internal ID=519549099)
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: John.McWaters on 2021-01-21, 16:07:25
In general, I think it would be great if more slate editor components worked more or less like they do in Grasshopper if you're familiar.

I think it would make for much more efficient work flows when it comes to creating materials, and you can save a lot of time as a result.

This feature is already implemented for the CoronaColorCorrect modifier. I think UVW Randomizer would also be really helpful.
Title: Re: Clone a node (UVW Randomizer) in Slate Editor
Post by: maru on 2021-01-21, 16:10:56
This feature is already implemented for the CoronaColorCorrect modifier. I think UVW Randomizer would also be really helpful.

Exactly this. But there are various ways how it could be done.