Sassoun Posted December 8, 2017 Share Posted December 8, 2017 Hi all ! I'm struggling with an addpoint function, I'd like to use a variable to declare a point but it seems that's not allowed… What is the proper way to do this ? My code in a pointwrangle : float height = fit(rand(@seed, @ptnum), 0, 1, 0.4, 0.55); addpoint(0, {0,height,0}); if I put a 1 instead of "height" it creates the point perfectly well :/ Thank you for your help ! Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted December 8, 2017 Share Posted December 8, 2017 use set() instead of curly brackets: addpoint(0, set(0, height, 0) ); 1 Quote Link to comment Share on other sites More sharing options...
Sassoun Posted December 9, 2017 Author Share Posted December 9, 2017 THANK YOU SO MUCH ! Quote Link to comment Share on other sites More sharing options...
LukeLetellier Posted September 23, 2019 Share Posted September 23, 2019 Thank you as well! 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.