yujiyuji Posted January 29, 2021 Share Posted January 29, 2021 Is it possible to have a point on an object with a scatter and control it so that the scatter avoids the sphere? I'd like to control the sphere with transform. When Sophia passes through the object, the object in the area she passes through seems to expand. Thank you. Quote Link to comment Share on other sites More sharing options...
Librarian Posted January 29, 2021 Share Posted January 29, 2021 @yujiyuji Expand In what Form?(if you play With IsoOffset you have nice control) ,depending on Actual effect , (Like Sophia's Passing object part, that she use ,or just Like sticking to actual Geo Of Sophia and what Type of control You want to have over those points ? Maybe it Helps ! Have Fun //Input 2 is Geo //Input3 is SDF representation of Geo int handle = pcopen(@OpInput2, "P", @P, chf("rad"), chi("num")); vector lp = pcfilter(handle, "P"); i@npt = nearpoint(1,@P); vector npos = point(1,"P",i@npt); vector off = set(0,chf("yoffset"),0); vector disp = @P-lp; float vsample = volumesample(2,0,@P); if(vsample<0)@P-=disp; 1 Quote Link to comment Share on other sites More sharing options...
yujiyuji Posted January 29, 2021 Author Share Posted January 29, 2021 wow!! that's what I wanted to know! Thank you! Quote Link to comment Share on other sites More sharing options...
Librarian Posted January 29, 2021 Share Posted January 29, 2021 You're Welcome @yujiyuji 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.