Jump to content
Developer Wiki and Function Reference Links ×

Duplicate and distribute circles inside of rectangle based on rectangle size


Recommended Posts

I have a rectangle that changes size based on user input for width and height.  I need to place circles in each corner of the rectangle.   Then, duplicate and distribute circles around the edges of the rectangle with equal spacing,  the spacing will be based on a user input.   The quantity of duplicates needs to be based on the rectangle's size and circles spacing distance. 

 

I may also need to fill in the middle of the rectangle with circles in a spaced grid with the same spacing, but one thing at a time..

 

There is probably a easy solution for this, but I can't seem to find the Marionette way to do this at the moment...  I know about duplicate array when drawing this the normal way, but am trying to find a Marionette solution.  Anyone got an idea or node that would do this simply?   I've attached a VW2024 file.  

 

Thank you in advance for helping a Marionette newbie out!

 

 

DuplicatecirclesMarionette.thumb.jpg.212c668fddcfb07468f2dedaf922bc93.jpg

Circles evenly spaced test file .vwx

Link to comment

Hello,

 

i think i struggle to undestrand what exactly you want to acchieve, because i think that width and height of the rectangle cant be choosen independently from spacing if the dircles need to fit into the corners like its drawn in the second screenshot.

 

However this is how i would do a Marionette that distributes loci (a point) along a "line" that follows the x direction, when also the number of points that should be on this line are given:

grafik.png.08bfb2c284ec2da4754661e5de8609cc.png

 

And the same Marionette but for the y direction:

grafik.png.12ca7909106d4147bdba3f51cfd2422a.png

 

And a Marionette that combines the x and y direction into a grid (you have to set the "Mix" node to "Cross Reference" in the OIP of the node):

grafik.thumb.png.f9e2c0d3149c5168e7c214136cee1ae8.png

 

Regards,

Letti

 

Edited by Letti R
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...