Jump to content

Aligning Multiple Copies


zoki

Recommended Posts

Hi

I am copying multiple object through one switch with

fit01(rand($PT),0,(opninputs("../switch1"))) on stamp so they get randomly placed

problem I have is that all inputs into switch sop have different bounding boxes and I would like them to align one side by side each other?

So I need to have my template grid for copy sop shifting points depending on size of the object that gets copied on a that particular point?

I dont know if this is doable I have bounds of boxes and their center points but now I am stuck :)

thanks

z

Link to comment
Share on other sites

Hi Zoran,

I might be wrong...but I'd rather try to scale down or up each stamped object to fit the space in a grid? I am thinking of comparing factors between bounding boxes (in X and Z axis) and than scale your geometry by this factor. You start from grid yes? So I could try to stamp on points which lay in the center of the face. in that case BB box of each face gives you a space around it.

Would be great to see a file if you can send it?

good luck :)

kuba

Link to comment
Share on other sites

hi

and thanks for reply

unfortunately I cant scale or tweak my copies since they represent finished model parts so they cant be altered in scale....I just need to distribute them for now on a plane not in some 3d order and make sure they dont overlap but stick nicely together like 3d tetris :blink:

I will try to get file up

zinstance_setup_v001.hip

Edited by zoki
Link to comment
Share on other sites

hi

thats a clever idea and certainly would work I would like to stick with sops if posible and get as cheap solution as i can and then if it doesnt work go to dops or something in simulation region :unsure:

z

Link to comment
Share on other sites

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.   Paste as plain text instead

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