ParticleSkull Posted March 3, 2017 Share Posted March 3, 2017 Hey guys, I would usually do this easily with a Copy Sop (Copy to Points now), just like on Rohan Dalvi's Mograph Series but, since the fragments are not over points, I have no idea on how to do this without a stamp. Here's something very similar from what I need: Thx, Alvaro Quote Link to comment Share on other sites More sharing options...
iamyog Posted March 3, 2017 Share Posted March 3, 2017 (edited) assuming you have pieces neatly separated, kind of what a voronoi fracture would output you, you can just pack via an assembleSOP (check "create Name attribute" and "create packed geometry"). This will give you one packed primitive per piece and thus one point. You can manipulate them as you need via the intrisic attribute "transform" A point wrangler running this code should get you on the tracks. float _seedpiece = rand(@ptnum); // multiplier per piece float _seed = fit01(_seedpiece, 0.5, 1); // unique rotation speed multiplier float _startframe = ch("startframe"); float _fadeout = ch("fade_out") * _seedpiece; matrix3 _m = ident(); // initial transformation matrix float _angle = (clamp((@Frame - _startframe), 0, 1000) * _seed) * ch("speed"); vector _axis = set(rand(@ptnum + 1), rand(@ptnum + 5), rand(@ptnum + 9)); // random rotation acix _fadeout = 1 - fit(clamp(@Frame - _startframe, 0, _fadeout), 0, _fadeout, 0, 1); vector _scl = set(_fadeout); rotate(_m, _angle, _axis); scale(_m, _scl); setprimintrinsic(0, "transform", @ptnum, _m); Edited March 3, 2017 by iamyog typo 1 Quote Link to comment Share on other sites More sharing options...
stickman Posted March 5, 2017 Share Posted March 5, 2017 If one of you would share a scene with this code working, i'd be very grateful. My attempt has failed... would like to be able to grok this. Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted March 5, 2017 Author Share Posted March 5, 2017 Hey David, check it out, it's attached: Control Animation of Individual Pieces.rar 1 Quote Link to comment Share on other sites More sharing options...
stickman Posted March 5, 2017 Share Posted March 5, 2017 Thanks! Quote Link to comment Share on other sites More sharing options...
anim Posted March 5, 2017 Share Posted March 5, 2017 there is also Transform Pieces SOP, so that you can do your animation on particles and then just transform packed pieces with it 1 Quote Link to comment Share on other sites More sharing options...
ParticleSkull Posted March 5, 2017 Author Share Posted March 5, 2017 Hey Tomas, thank you, I wasn't aware of this sop. Had a look but it's not that intuitive though Quote Link to comment Share on other sites More sharing options...
anim Posted March 5, 2017 Share Posted March 5, 2017 maybe not the most intuitive, but tends to work once you understand how it works 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.