Random spline thickness

Random spline thickness

paul.clements
Participant Participant
898 Views
5 Replies
Message 1 of 6

Random spline thickness

paul.clements
Participant
Participant

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!

0 Likes
899 Views
5 Replies
Replies (5)
Message 2 of 6

peter_horvath
Autodesk
Autodesk

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
0 Likes
Message 3 of 6

paul.clements
Participant
Participant

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.

0 Likes
Message 4 of 6

peter_horvath
Autodesk
Autodesk

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
0 Likes
Message 5 of 6

paul.clements
Participant
Participant

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

0 Likes
Message 6 of 6

peter_horvath
Autodesk
Autodesk

Thickness can now be randomized per spline in C4DtoA 4.2.3.


// Peter Horvath
// C4DtoA developer
0 Likes