Jump to content

Line by distance and two points


Recommended Posts

Hello Marionette gurus:

Is there a way I can get Marionette to draw me a line using a start point, a point on the line, and a distance?

This seems to be giving me more trouble than I had expected. My current workaround is to draw a line from the start point along the X axis of distance D, then draw a line between the two points, get its angle, and rotate the first line to match.

But I know there's probably a more elegant solution.

Link to comment

Yes. I'm sure it could be done with supplied nodes, but there is little support for vector math in the current set of nodes I searched, so the easiest way I found was to roll a custom node.

Here's my stab at one that answers your question. If it's not exactly what you need, try tweaking the code inside, but if you do, please post back your changes.

HTH,

Raymond

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...