RE: ot: writing Re-Assign Locally for Maya
Hi Matt and Steve, I got it working on simple things. It works perfectly if I try it on primitives with a few bones (Thanks Ahmidou, I figured how to compute a distance to line, and that fixed the wrong calculations I had ☺ ) It does not work on mGear rig unfortunately , it breaks the rig, it also doesn’t work on Maya’s quickrig. I suspect there is something major under the hood of maya, that I do not understand regarding rigging and skinning, and that I am doing something wrong, or missing something important with that script. Basically I gave up a few months ago, and just put the script aside.. I might try to get into it again sometime, but it’s kind of hard because I do not script on a daily basis, so going back to a Python script 6-7 months after I did not script anything is kind of hard. I did try to keep the script clean with descriptions of what each block does. I can share it if someone wants to take a look at it, But I am not a professional scripter/programmer it’s just something I enjoy doing once in a while, so it’s probably not the smoothest code ☺ Oz. From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@listproc.autodesk.com] On Behalf Of Matt Morris Sent: יום ה 29 יוני 2017 13:08 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 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<mailto:oz@playtech.com>> wrote: Thanks Ahmidou, this is very helpful! ☺ From: softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@listproc.autodesk.com> [mailto:softimage-boun...@listproc.autodesk.com<mailto:softimage-boun...@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<mailto: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<mailto: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<mailto: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 c
Re: ot: writing Re-Assign Locally for Maya
+1!!! On Thu, Jun 29, 2017 at 6:07 AM, Matt Morris <matt...@gmail.com> wrote: > 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-boun...@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. > -- Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.
Re: ot: writing Re-Assign Locally for Maya
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.
RE: ot: writing Re-Assign Locally for Maya
Thanks Ahmidou, this is very helpful! ☺ From: softimage-boun...@listproc.autodesk.com [mailto:softimage-boun...@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<mailto: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<mailto: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.
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"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. > -- Softimage Mailing List. To unsubscribe, send a mail to softimage-requ...@listproc.autodesk.com with "unsubscribe" in the subject, and reply to confirm.