Jump to content

How to get the min and max values of a volume?


LFX

Recommended Posts

I can iterate over every value in a volumevop SOP, but how can I compare one to another? Or is there a straighter way?

I have a workaroundish solution with attribfromvolume SOP: Getting the values from points, which I scattered in the volume.

I want to use these values for volumeramp SOP.

Link to comment
Share on other sites

I can iterate over every value in a volumevop SOP, but how can I compare one to another? Or is there a straighter way?

I have a workaroundish solution with attribfromvolume SOP: Getting the values from points, which I scattered in the volume.

I want to use these values for volumeramp SOP.

Can you use the volumemin() and volumemax() expression functions?

  • Like 1
Link to comment
Share on other sites

Oh man! Yep, Macha refers to the same function. I must have forgotten to check the expressions.

Anyway, I wish the documentation of volumes would be more detailed. I had to browse the forums a lot.

Thanks a bunch!

Edit: Or are volumes the same everywhere - not unique in Houdini?

Edited by LFX
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...