Hello world Posted February 11, 2012 Share Posted February 11, 2012 Hi I am attaching the file.I have instance lines to particles.My question is that I want the lines not to go beyond the -y.every line has to touch the display grid lineinstancedoubt.hipnc Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted February 11, 2012 Share Posted February 11, 2012 Hi. There are quite a number of ways to do this actually. 1) Clip SOP to clip the line below any threshold (assuming it's okay to just chop the line 2) Find the distance at Y to threshold, then ensure that the line don't scale beyond that limit (either using scale attribute, or copy stamp) 3) Limit the Y distance (either using scale attribute, or copy stamp) ... these are just a few ways. Hope this guide you to the result you're looking for tho. Happy Friday Night. Quote Link to comment Share on other sites More sharing options...
TheUsualAlex Posted February 11, 2012 Share Posted February 11, 2012 Hi. There are quite a number of ways to do this actually. 1) Clip SOP to clip the line below any threshold (assuming it's okay to just chop the line 2) Find the distance at Y to threshold, then ensure that the line don't scale beyond that limit (either using scale attribute, or copy stamp) 3) Limit the Y distance (either using scale attribute, or copy stamp) ... these are just a few ways. Hope this guide you to the result you're looking for tho. Happy Friday Night. Quote Link to comment Share on other sites More sharing options...
Hello world Posted February 11, 2012 Author Share Posted February 11, 2012 any ideas why my setup is not working? is that the right way to approach that? Quote Link to comment Share on other sites More sharing options...
gaurav Posted February 11, 2012 Share Posted February 11, 2012 As alex suggested there are many ways. But looking at your file. you might want to limit the template points that are going below 0 in Y. after the xform, append a point sop with expression max(0,$TY) in position ty. Cheers, 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.