Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error retrieving default arguments

0 REPLIES 0
Reply
Message 1 of 1
ldevaronabarrameda
71 Views, 0 Replies

Error retrieving default arguments

Hello, I'm doing a basic toolset but I get this error for the freeze transforms, this is the script I have 

def freezeTransforms(*args):
print ('args:'+'Transforms have been frozen',(args))
pm.makeIdentity(apply=True,t=1,r=1,s=1,n=0,pn=1)

 

and this is the error that i get in the script editor inside maya

args:Transforms have been frozen (False,)
# Error: Error retrieving default arguments
# # Traceback (most recent call last):
# # File "/Applications/Autodesk/maya2023/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.9/site-packages/pymel/internal/factories.py", line 846, in callback
# # res = origCallback(*newargs)
# # pm.makeIdentity(apply=True,t=1,r=1,s=1,n=0,pn=1)
# # File "/Applications/Autodesk/maya2023/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.9/site-packages/pymel/internal/pmcmds.py", line 217, in makeIdentity_wrapped
# # res = new_cmd(*new_args, **new_kwargs)
# # TypeError: Error retrieving default arguments

How can I fix the script? Thank you!

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report