Jump to content
Developer Wiki and Function Reference Links ×

Mirror on Axis Node?


Dishav Vasudev

Recommended Posts

Hello all,

I'm a 2D Vectorworks user who is new to scripting/marionette and I am in the process of creating a 2D Door plan plug-in object type. The problem I am having is I don't know how to else to mirror an object from the center axis of an another object.

1562746613_ScreenShot2019-09-25at14_11_45.thumb.png.25fc964615278576464b22feddc31e17.png

The door image shows the red fill elements that I want to create (using mirror node) on the red line axis. I have got loci's of both center point and tried various ways to mirror it on the X & Y axis of those loci. 

 

I have been able to do this when I add a second point into the axis (i.e if point 1 is on (100, 50), the second point would be (100, 0) creating a line in y axis) however, if I change the door size in OIP, then it doesn't mirror how I want it to.

221862971_ScreenShot2019-09-25at14_09_49.thumb.png.eaa13e0da2166b7d688690030d217859.png

 

I've attached my method of marionette nodes, again this is my first attempt at this so any feedback in my working method would be very much appreciated. Am i doing something wrong in the script or is there another method?

 

(The reason for my own door even though VW has its own, is simply because of appearance and ease of use compared to the IFC door plug in.)

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...