Basically I want to move a slider and bend the polyline like the image. I currently have a definition that does the task but in a very ‘artisanal’ way… if I change the number of points that form the polyline the script breaks because you’ll have to copy one part of the definition below to solve the ‘addition problem’ and reconnect everything. I looking on ways to optimize this technique of bending.
If your polyline input has arbitrary length segments(?), it won’t do either, but the Anemone group could be adapted rather easily by replacing the ‘Length’ slider with a list of polyline segment lengths.
I like this one much better. The white group (“bend it”) at the bottom does the heavy lifting with Anemone. It has two geometry inputs: 1) a polyline and 2) a rotation plane (‘rot_plane’). The ‘angle’ slider sets the rotation angle that applies to all segments.
The first three groups are optional:
‘Consruction Plane’ (light blue) with Azimuth and Altitude sliders.
‘line’ (purple) that sets the origin and total length of a line.
‘polyline’ (yellow) with a ‘Count’ slider to set the number of segments and a Value List switch to choose between “Even” (all segments the same length) or “Random” length segments.