xFlaye Posted October 14, 2020 Share Posted October 14, 2020 Hi, I made a picket fence generator. I'm trying to create dynamic rails that will stretch from post to post based on a control curve. The length of the curve segment are in one loop, but I can't seem to get it to iterate properly. It only captures the last iteration and applies it to all. I'm using arclen for it. I've tried using details, but I'm definitely missing on how to integrate the two. I'm attaching the file, and a screenshot. Thanks for the help. curveLengthProblem.hipnc Quote Link to comment Share on other sites More sharing options...
Noobini Posted October 14, 2020 Share Posted October 14, 2020 well i simply moved the problematic blast...so that you read the arclen BEFORE it was truncated is this what you want ? curveLengthProblem_fix.hipnc Quote Link to comment Share on other sites More sharing options...
xFlaye Posted October 14, 2020 Author Share Posted October 14, 2020 Thank you, @Noobini That was exactly the issue, which I realized after posting it. Sometimes you don't see the the forest for the trees. Out of curiosity though...is it possible to call that information should it be required? Is there a VEX snippet (or an expression) that will allow to call info? Thanks! Quote Link to comment Share on other sites More sharing options...
Noobini Posted October 14, 2020 Share Posted October 14, 2020 (edited) 1 hour ago, xFlaye said: Thank you, @Noobini That was exactly the issue, which I realized after posting it. Sometimes you don't see the the forest for the trees. Out of curiosity though...is it possible to call that information should it be required? Is there a VEX snippet (or an expression) that will allow to call info? Thanks! sure can...so if you use your orig file with the error: in the 1st loop you've set up @postLength for each prim already BEFORE the truncate. then in 2nd loop, for each prim you should simply read back what you set up, ie: instead of using arclen to recalc a SHORTER prim prim("../foreach_begin2",0,"postLength",0) Bob's you builder uncle. Edited October 14, 2020 by Noobini Quote Link to comment Share on other sites More sharing options...
xFlaye Posted October 14, 2020 Author Share Posted October 14, 2020 Brilliant! Thank you @Noobini. 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.