Librarian Posted March 11, 2020 Share Posted March 11, 2020 Found on some Asian--Forum only Picture and code. I follow tutos and made (something) but I have only H 16.5 and Qlib ( Don't get it- Centroid and for-each(extract -Centroid ) if someone can look the file and explain prim_scale vector max_pos=getbbox_max(1); vector min_pos=getbbox_min(1); float position=fit(@P.z,min_pos.x,max_pos.x,0,1); float scale=chramp("scale",position)+0.5; f@prim_scale=scale; ------------------------------------------------------ prim_color float position=fit(@prim_scale,0.5,1.5,0,1); vector color=chramp("prim_color",position); @Cd=color; TutosOdforce.hipnc Quote Link to comment Share on other sites More sharing options...
Dweeble Posted March 11, 2020 Share Posted March 11, 2020 'Extract Centroid' can store the centroid as a primitive attribute. You can get the same effect by using centroid(0, *X/Y/Z*) in 'transform3''s pivot, then scale by 'prim_scale'. Not sure how the setup makes sense but maybe I'm missing something. Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 11, 2020 Author Share Posted March 11, 2020 (edited) Found Trick Edited March 11, 2020 by Librarian 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.