Hi, You need to test the distance against points the lines defined by bones and their childs. Search for "point to line distance"
Le 18 déc. 2016 07:14, "Oz Adi" <[email protected]> a écrit : > Hi, > > > > I am really missing “Re-Assign Locally” for envelopes, in Maya, so I > wrote a simple Python script. > > The script calculates weight by distance, between each selected point to > each selected joint, using the formula > in the attached file, I then assign those values back to the skin cluster.. > > The script kind of works, it does what it’s supposed to do, but the > results are not as expected. > > > > In the attached image you can see an example of a cylinder, how the > weights distribution between 2 bones > looks like in Maya and Softimage ( in both apps, I chose “by distance” > method). > > Then there is the result my script produces: as you can see, the bottom > bone gets too much influence in the top half, > > And the top bone gets too little influence where it should.. > > I am not a Mathematician, nor a Programmer, I try to learn on my own > using the internet, > > I understand that 3D apps probably do more than just calculate the > distance, and derive a weight, but I hoped for similar results ;) > > > > If anyone has an idea, how can I get closer results to how 3D apps > calculate these weights, I’d be happy to hear.. > > I can also share the script, if it interests anyone. > > > > Thanks, > > Oz. > > > > This communication (including any attachments) is sent on behalf of > Playtech plc or one of its subsidiaries (Playtech Group). It contains > information which is confidential and privileged. If you are not the > intended recipient, please notify the sender immediately and destroy any > copies of this communication. Unless expressly stated to the contrary, > nothing in this communication constitutes a contractual offer capable of > acceptance or indicates intention to create legal relations or grant any > rights. The Playtech Group monitors communications sent or received by it > for security and other purposes. Any views or opinions presented are solely > those of the author and do not necessarily represent those of the Playtech > Group > > ------ > Softimage Mailing List. > To unsubscribe, send a mail to [email protected] > with "unsubscribe" in the subject, and reply to confirm. >
------ Softimage Mailing List. To unsubscribe, send a mail to [email protected] with "unsubscribe" in the subject, and reply to confirm.

