dubCUT Posted March 18, 2021 Share Posted March 18, 2021 (edited) Hello how can i rescale "pscale" by "P.y" when i transform the whole thing in the end? copy stamp? As i understand "pscale" must be set before "copy to points". i know i could move up the transform node, but for the sake of learning something new, i don't :-) thank you pscalepy.hipnc Edited March 18, 2021 by dubCUT Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 18, 2021 Share Posted March 18, 2021 (edited) @dubCUT I have this that I use For patterns with Color and Chops ...I think that its not Right ...I Have only this.. + you have endless examples here https://github.com/qLab/qLib Try Using Different Math Function in Help Panel . odfsca.hiplc Edited March 18, 2021 by Librarian Quote Link to comment Share on other sites More sharing options...
bunker Posted March 18, 2021 Share Posted March 18, 2021 (edited) vector bmin,bmax; getbbox(0,bmin,bmax); f@pscale = fit(@P.y,bmin.y,bmax.y,0.1,1); you don't need Chops or any HDAs for that Edited March 18, 2021 by bunker Quote Link to comment Share on other sites More sharing options...
Librarian Posted March 18, 2021 Share Posted March 18, 2021 Don't listen to anyone you need everything Quote Link to comment Share on other sites More sharing options...
jfaulkner Posted March 18, 2021 Share Posted March 18, 2021 f@pscale = relbbox(0, @P).y; Would be the simplest approach I reckon. Quote Link to comment Share on other sites More sharing options...
dubCUT Posted March 18, 2021 Author Share Posted March 18, 2021 (edited) thank you very much for your inputs! @Librarian guess i need to have a look at qlib. thanks for the setup, i need some time to fully understand this, but it looks like sorting id by size. nice! @bunker & @jfaulkner i don't understand where to put that bbox wrangle... as i rotate the grid at the end of the node chain and pscale must be written before copy to points. Edited March 18, 2021 by dubCUT Quote Link to comment Share on other sites More sharing options...
underscoreus Posted March 18, 2021 Share Posted March 18, 2021 (edited) @dubCUT Here is a quick example using similar approaches to bunker's and (kinda) jfaulkner's methods above except that I went for a slightly less procedural approach in favor of more "direct" control by making all the values in sliders for easy control. And for easy readability for future readers, here is the code I used if you don't want to download a hipfile: f@pscale = fit(v@P.y, chf('Min_Height'), chf('Max_Height'), chf('Min_scale'), chf('Max_Scale')); Control_Scale_by_Height.hiplc Edited March 18, 2021 by underscoreus Quote Link to comment Share on other sites More sharing options...
jfaulkner Posted March 18, 2021 Share Posted March 18, 2021 2 hours ago, dubCUT said: i don't understand where to put that bbox wrangle... as i rotate the grid at the end of the node chain and pscale must be written before copy to points. In the wrangle you have shown will work pscalepy_relbbox.hipnc Quote Link to comment Share on other sites More sharing options...
dubCUT Posted March 22, 2021 Author Share Posted March 22, 2021 thank you all! that's very kind. (and a lot to digest, as always :-) ) 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.