Jump to content

pscale by height


Recommended Posts

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.jpg

pscalepy.hipnc

Edited by dubCUT
Link to comment
Share on other sites

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 by dubCUT
Link to comment
Share on other sites

@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 by underscoreus
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...