Hi all,
I'm already struggling a couple of days with keeping a connection point on a fix position on a connector.
I'm trying to make a smart shape that automatically adjusts depending on the shapedata feeded from a database.
One of my latest thing is that I have 2 connection points and 1 handle that must be 10mm from the begin of the connector and the same that must be 10mm from the end of the connector.
My problem is that they don't stay on the connector, depending on the connector path, they do not stay on the connectors path, and it is also not 10mm (or any other fixed distance)
attached you can find my connector.
It won't solve all your problems but you could at least set the X and Y Behavior of the control points to OffsetMin resp. OffsetMax.
Assuming you have V2010 or newer, you can do this with pointalongpath function. It will take a little work because the function wants % of path, not a fixed amount. So, the 10mm needs to convert to % of wavelength.
To get an idea, see this: http://visguy.com/vgforum/index.php?topic=8695.0 (http://visguy.com/vgforum/index.php?topic=8695.0)
This solution worked for me.
Thank you.
(https://i.ibb.co/5MpXDvt/2019-02-26-19h48-52.png)
Quote from: wapperdude on February 26, 2019, 02:29:36 PM
Assuming you have V2010 or newer, you can do this with pointalongpath function. It will take a little work because the function wants % of path, not a fixed amount. So, the 10mm needs to convert to % of wavelength.
To get an idea, see this: http://visguy.com/vgforum/index.php?topic=8695.0 (http://visguy.com/vgforum/index.php?topic=8695.0)