bit late to the party, but I thought I'd get a little WIP thread up and running regardless.
Attach to Curve
My plan for this Tech Art Challenge is to submit a utility HDA that makes it easy to:
- add (and remove) points to curves directly in the viewport.
- attach them to the curves so modifications to them also move the points
- be able to modify the points after they have been placed / adjusted by the underlying curve
Use case and example:
Placing a specific object along a curve.
- use the
addSOP to add a point
- move it roughly to the position I want the object to be
- use a
raySOP to snap the point based on minimum distance
- transfer various attributes from the curve, such as normal, tangent and up vector
- place the object using a
While this becomes muscle memory at a certain point, it is a lot of steps that can be streamlined.
Also, the real issue shows when trying to modify the curves after the fact. Maybe a client asks for some changes.
The point that was added previously is in world space, and changing the curve too far might influence the object placement that we had set up drastically.
If we're lucky, the same position we had placed the point at originally is still the closest and it will snap where we want. If we're less lucky, and a different curve happens to now be closer to the point, it will no longer end up in our desired spot.
See this visually:
Progress thus far:
Viewer State to easily add points, with preview highlight for the location of the created point, as well as the curve that it will be placed on.
This one I'm pretty proud of: The snapping distance is based on screenspace coordinates, instead of worldspace.
This should allow for a more consistent feeling when adding the points.
In the example below the snapping distance is 10 pixels.
A big inspiration for this is the RC Spline feature of iToo Railclone.
The timestamped video below is a trailer for it and demonstrates some of the workflows that this should enable:
Looking forward to the remainder of the challenge!
EDIT: Changed .mp4 attachments for .gif