Setting values for individual strokes (Draw Curve SOP)

   1037   0   1
User Avatar
Member
12 posts
Joined: Aug. 2015
Offline
Hello,

I'm using the Draw Curve SOP inside an asset to draw curves/points on a surface and then
copy objects to the points.

I would like to add custom attributes to each stroke with pre-set values.
At the moment, I'm using custom parameters in the multiparm folder of the Draw Curve SOP,
which I promoted to the asset's IU. So after I make a stroke, I can change the parameters
in each individual stroke tab, which are then stored using a wrangle inside the asset.
This works fine, but gets a bit tedious once there are a lot of strokes and I have to click
through the tabs and find the one I want to change.

Ideally, I would like to have the parameter (maybe a dropdown menu) outside the multiparm
folder, change them before each stroke and the next stroke will pick up whatever value was set;
much like when you pick a color before you use the paint tool.

The problem is, that I haven't found a way how to do this yet. When I process
the strokes in the wrangle, they all pick up the value of whatever was
set last.

To give you an example, I would like to draw curves and set the thickness/pscale attribute beforehand. Each stroke will have a different value for it's thickness.

Hope that all makes sense.

Any help is appreciated.

Thanks!
  • Quick Links