Re: [Maya-Python] Re: Python Maya add new attribute

2023-07-27 Thread Justin Israel
No worries. Happy to help. On Thu, 27 Jul 2023, 11:47 pm SquashnStretch net, wrote: > I guess I forgot to reply to this Justin, sorry and thank you very much > for taking the time to explain perfectly ;) > > Thanks > F > > Il giorno gio 13 lug 2023 alle ore 10:48 Justin Israel < > justinisr...@g

Re: [Maya-Python] Re: Python Maya add new attribute

2023-07-27 Thread SquashnStretch net
I guess I forgot to reply to this Justin, sorry and thank you very much for taking the time to explain perfectly ;) Thanks F Il giorno gio 13 lug 2023 alle ore 10:48 Justin Israel < [email protected]> ha scritto: > > > On Thu, 13 Jul 2023, 8:55 pm SquashnStretch net, < > squashnstret...@gma

Re: [Maya-Python] Re: Python Maya add new attribute

2023-07-13 Thread Justin Israel
On Thu, 13 Jul 2023, 8:55 pm SquashnStretch net, wrote: > Thanks Justin, > yes the problem is when I go back and forth between arms to add new > attribute, the code sometimes gets confused :) > I'll try your version.. > I have another question.. Does it make sense to wrap these kind of codes > in

Re: [Maya-Python] Re: Python Maya add new attribute

2023-07-13 Thread SquashnStretch net
Thanks Justin, yes the problem is when I go back and forth between arms to add new attribute, the code sometimes gets confused :) I'll try your version.. I have another question.. Does it make sense to wrap these kind of codes into a class or wouldn't change much ? Thanks F Il giorno lun 26 giu 2

Re: [Maya-Python] Re: Python Maya add new attribute

2023-06-25 Thread Justin Israel
>From what I can see in your last code example and your description of the problem you are seeing, is the issue due to the selection changing after you run the add_attribute_and_create_group() operation? Because unless I am missing something specific to your select, it seems to work fine as long as

Re: [Maya-Python] Re: Python Maya add new attribute

2023-06-25 Thread SquashnStretch net
Hello Justin, here is the prev version with no globals, i ddnt connect the attributes here because i wanted to solde the parentConstraint first...: import maya.cmds as mc def add_attribute_and_create_group(*args): attribute_name = mc.textField(attribute_field, query=True, text=True) selec

Re: [Maya-Python] Re: Python Maya add new attribute

2023-06-23 Thread Justin Israel
On Sat, 24 Jun 2023, 5:13 am SquashnStretch net, wrote: > actually that was the version with globals, I tried many ways but I get > the same results. > thanks > Can you share your attempt without globals? > Il giorno venerdì 23 giugno 2023 alle 17:41:28 UTC+1 SquashnStretch net ha > scritt

[Maya-Python] Re: Python Maya add new attribute

2023-06-23 Thread SquashnStretch net
actually that was the version with globals, I tried many ways but I get the same results. thanks Il giorno venerdì 23 giugno 2023 alle 17:41:28 UTC+1 SquashnStretch net ha scritto: > Hello Everyone, > I went back to my attempt on adding new attribute to every rig, like I > want hand can b