Community
Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Random spline thickness

5 REPLIES 5
Reply
Message 1 of 6
paul.clements
178 Views, 5 Replies

Random spline thickness

I have a single object which is many individual splines along a flat surface.

 

Is it possible to give each spline a random thickness? Each spline should be uniform in thickness but just different from each other... Any help is much appreciated!

5 REPLIES 5
Message 2 of 6

There's no way to randomize the radius currently, I'm afraid. It would be a nice addition in a future version though. Your only option currently is using a tool where you can control thickness on the geometry level (e.g. xp trails).


// Peter Horvath
// C4DtoA developer
Message 3 of 6

Thanks Peter. I had another question also re. curves....

 

Is it possible to colour the curves in order? So curve 1 is white and curve 100 is black? I have been experimenting with curve_id but no success as yet.

Message 4 of 6

That should be it. user_data_int with curve_id as the attribute, connected to a range shader to map [0, N] to [0, 1]. The order is how the splines defined in the object. You might need a ramp as well to set from white to black.


// Peter Horvath
// C4DtoA developer
Message 5 of 6

That has worked brilliantly, I was missing the range shader. Much appreciated, thanks Peter

Message 6 of 6

Thickness can now be randomized per spline in C4DtoA 4.2.3.


// Peter Horvath
// C4DtoA developer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums