Jump to content

A fit that takes the minimum maximum of a value instead of you providing it?


Krion

Recommended Posts

Prior to an attribute vop or wrangle you need to place two attribute promote and set your value to detail and methods respectively to min and max. You can then plug these outputs into the second and third inputs. Then in your attribute fit setup you can reference these detail attributes.

The reason this does not work within a normal vex or vop context is that they iterate over the data type i.e.. points, vertex, prims. The attribute promotion itself needs to loop through all values to do it's calculation. 

So if you wanted to use this auto fit within a vop/vex chain you would need to split your code between two separate vex/vop node with the promotes sandwiched between and the sop level.

  • Like 1
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...