bastianlstrube Posted November 22, 2017 Share Posted November 22, 2017 (edited) Hi Odforce. I have POPs moving past a point and I want the stream to inherit and keep the points normal after passing. I thought this would be a straight forward pcopen() case, but I cant get it to keep the normal. It's only there for as long as it is within the search radius. I've tried a few different things in vex. wrapping it in an If statement instead of while, but to no avail. Edit: I should maybe mention that I'm in SOP right after importing from a DOP. Tried to make it work in POP wrangle but had no luck there either. Thanks, Bastian Edited November 22, 2017 by bastianlstrube Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 22, 2017 Share Posted November 22, 2017 Try this in a popwrangle inside the popnet. if(@n2 == 0) { float radius = chf("radius"); int maxpts = chi("maxpts"); int handle = pcopen(1, "P", @P, radius, maxpts); v@n2 = pcfilter(handle, "N"); v@N = @n2; } Quote Link to comment Share on other sites More sharing options...
woodenduck Posted November 22, 2017 Share Posted November 22, 2017 You will need to set the 'radius' and 'maxpoints' channels to something useful... ;D Quote Link to comment Share on other sites More sharing options...
bastianlstrube Posted November 29, 2017 Author Share Posted November 29, 2017 Thanks! This plus a little help from a friend got me the solution. Needed a SOP solver in the DOP, and inside there a wrangle with pciterate worked perfectly. 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.