Hi Oz, I'm interested if you got anywhere with this, and would be willing to share? Its one of the things I'm really missing!
Cheers, Matt On 19 December 2016 at 08:31, Oz Adi <oz....@playtech.com> wrote: > Thanks Ahmidou, > this is very helpful! > > > > J > > > > > > *From:* softimage-boun...@listproc.autodesk.com [mailto:softimage-bounces@ > listproc.autodesk.com] *On Behalf Of *Ahmidou Lyazidi > *Sent:* יום ב 19 דצמבר 2016 00:38 > *To:* Official Softimage Users Mailing List. https://groups.google.com/ > forum/#!forum/xsi_list <softimage@listproc.autodesk.com> > *Subject:* Re: ot: writing Re-Assign Locally for Maya > > > > 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" <oz....@playtech.com> 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 softimage-requ...@listproc.autodesk.com > with "unsubscribe" in the subject, and reply to confirm. > > 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 softimage-requ...@listproc.autodesk.com > with "unsubscribe" in the subject, and reply to confirm. > -- www.matinai.com
------ Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.