copy node, connect distance with scale

   2103   7   1
User Avatar
Member
32 posts
Joined: Nov. 2018
Offline
hello. please look at the image below. how can i set the copy node so that the distance between copies is always the same? not between the centers of copies but between nearest borders. i need the gape to be always like between the first ones at bottom.

Attachments:
clone.jpg (89.9 KB)

User Avatar
Member
897 posts
Joined: July 2018
Offline
A while since I worked that way, usually have points to copy to. But you can write an expression based on $CY which is the current copy number. ‘Distance+$CY *box size increase’ will get you close.
B.Henriksson, DICE
User Avatar
Member
32 posts
Joined: Nov. 2018
Offline
thank you for your reply. i got the idea, but cannot find out proper function for that.
you have mentioned, that you don't work that way anymore. may i ask how would you solve this case?
User Avatar
Member
897 posts
Joined: July 2018
Offline
I would use a ‘copy to points’ and in a wrangler create the points in a for loop.
B.Henriksson, DICE
User Avatar
Staff
3455 posts
Joined: July 2005
Offline
I'm not sure I understand what you're trying to do…
if you copy to points and scale - each copy will be scaled - in your case smaller than the one before
this means that the distance between the boxes will change

can you do a quick sketch of what you want the final result to look like?
Michael Goldfarb | www.odforce.net
Training Lead
SideFX
www.sidefx.com
User Avatar
Member
897 posts
Joined: July 2018
Offline
He wants the distance between the boxes to be fixed. So for each step the step size needs to be increased with half the size of the two boxes on either side.
B.Henriksson, DICE
User Avatar
Member
32 posts
Joined: Nov. 2018
Offline
yes, i want the distance between each copy to be the same when they are scaled.
User Avatar
Member
1737 posts
Joined: May 2006
Offline
A for loop can do this.

More info:

http://www.tokeru.com/cgwiki/index.php?title=ForLoops [www.tokeru.com]

Attachments:
box_stack_and_scale.hipnc (77.3 KB)

http://www.tokeru.com/cgwiki [www.tokeru.com]
https://www.patreon.com/mattestela [www.patreon.com]
  • Quick Links