Jump to content
Sign in to follow this  
Bradley King

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.

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×