Jump to content
Developer Wiki and Function Reference Links ×

Marionette - array / mirror / duplicate / rotate?


Recommended Posts

Hi

I am new to Marionette so still learning. Currently I am trying to create a plinth with parametric data to become part of a set of components that will eventually create a showcase. I have created the plinth with a single foot but I can't work out how to create the other 3 feet in the other plinth corners - ideally the feet would reposition in the same offset position no matter how big the plinth is. Here is a screenshot of the workflow I have so far (which is probably far more complicated than it needs to be). I have managed to duplicate 1 foot opposite the original but it is offset from the original XYZ point which is bringing it in too far. Can anyone help, with the feet and / or tips to simplify the workflow?

Thank you

B

Screenshot 2022-04-25 at 10.59.19.png

Screenshot 2022-04-25 at 11.24.09.png

Link to comment

Hello
Welcome to the Marionette Forum. I think your script looks quite good. My workflow is often to first calculate all necessary points and data. After That I create the Objects. Also I use a lot of custom nodes to save number of nodes (Enhanced Rectangle, Function 2, BBox Enhanced) but this is not necessary per se.
Creating Rectangle to find the corner point is something I would not do generally. Also Mirroring is not necessary, if your feeds are circles or squares. 

To Mirror correctly you need one horizontal and one vertical axis. In your Script there is only one Axis. Also you need to mirror one Feed over a Diagonal Axis and if the shape is not a square, this had to be calculated. Or you Mirror at the Vertical Axis, then you mirror the resulting object along the horizontal axis. The Get Item in the Screenshot, gets the first second duplicate (top left) and mirror again along the vertical axis. 
By the way, mirroring should work like this:



image.thumb.png.4e32b74f0eccc367d9647393a240aa07.png

Mirror Example.vwx

Link to comment

Hi Dom, Thank you for your response.

Perhaps mirroring the feet is not the way to go about creating them? What I am looking to create is a plinth that can be sized to suit any exhibit size. So it could be 1m x 2m or 3m x 1.5m and the position of the feet would move to suit the overall plinth size without having to recalculate the offset each time. Does that make sense?

I thought if I could find the centre of the plinth itself I could mirror (or similar) the original foot around it to the other 3 corners....

Thank you for your help

20220503_163111.jpg

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