Hello, I just got into python in the last few months and trying to write an auto rigger.
currently, I have a ctrl creation class and I would like to pass arguments like this.
def example(**kwargs):
kw = ['{0} = {1}'.format(key, value) for key, value in kwargs.items()]
cmds.polySphere(kw)
example(n= ‘hello’, r=2)
I think it mainly doesn’t work due to formatting the kwargs.
Any help would be appreciated.