Guide Partition and inverted attribute

   1786   2   1
User Avatar
Member
9 posts
Joined: Feb. 2020
Offline
Hello, I'm struggling to invert attribute "@partdist"


I created this expression but seems desen't work
f@partingMask = fit(@partdist, 0, 1, 1,0);



Maybe the value of partdist isn't 0 to 1 ?
i see some strange values in geometry Spreadsheet like 3.34558e-05


Thanks if anyone want help me to understand

Attachments:
partdist.jpg (280.4 KB)
partingMask.jpg (236.1 KB)
geometrySpread.jpg (105.3 KB)

User Avatar
Member
8177 posts
Joined: Sept. 2011
Offline
partdist sounds like a distance, not a 0-1 mask attribute. So the range of values is not really defined. Try fitting from a smaller max value, the maximum distance, instead of from 1 to 0. In the geometry spreadsheet try sorting the values in reverse order to get an idea of what the maximum value is of the attribute.
User Avatar
Member
9 posts
Joined: Feb. 2020
Offline
jsmack
partdist sounds like a distance, not a 0-1 mask attribute. So the range of values is not really defined. Try fitting from a smaller max value, the maximum distance, instead of from 1 to 0. In the geometry spreadsheet try sorting the values in reverse order to get an idea of what the maximum value is of the attribute.
Thanks for your reply, I solved with a very low max value, like 0.035, that is the global scale of my skin/model, i think is related
  • Quick Links