fiverob Posted November 3, 2016 Share Posted November 3, 2016 Hey everyone, So, I'm attempting to recreate this packed objects / dart throwing technique from Simon Holmedal. I feel I'm close, but I'm struggling with a n00b problem and was hoping someone could take a look and help me out. I have an attribute on the primitives that I want to drive the scale of the copied spheres. I've done an attribute wrangle on the primitives to create new points at the center of each which I plan to use as the locations for the copied spheres. I just can't seem to work out how to transfer the attribute AND delete the primitives. I'm not having any luck with the attribute transfer node. Any ideas? Thanks legends. DartThrowingAttempt.hip Quote Link to comment Share on other sites More sharing options...
TheDude Posted November 3, 2016 Share Posted November 3, 2016 Super hacky, also looking for a better method DartThrowingAttempt_JG.hip Quote Link to comment Share on other sites More sharing options...
dchow1992 Posted November 4, 2016 Share Posted November 4, 2016 (edited) you can use setattrib to set point attributes ex: int newpt = addpoint(0, @P); setattrib(0, "point", "pscale", newpt, 0, @area); removeprim(0, @primnum, 1); make sure you have pscale on your points edit*couldn't resist trying to make something kinda slow though, i'm sure there's a better way sphere_packing_005.hip Edited November 4, 2016 by dchow1992 1 Quote Link to comment Share on other sites More sharing options...
Shinjipierre Posted November 4, 2016 Share Posted November 4, 2016 pack each piece with the name attribute, use attribute promote on your attribute Quote Link to comment Share on other sites More sharing options...
fiverob Posted November 9, 2016 Author Share Posted November 9, 2016 You guys are legends. I made this with your all help. And here's a link to an animated version. See you guys next time I'm stuck! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.