def mayaCommandWrapper(**kwargs): """ :keyword longFlag(shortFlag): This is a keyword flag can accept any value. """ preset = {} # Some dictionary preset here # Some solution here to provide long and short flags as well. preset.update(kwargs) # we want to overwrite preset with value if given any kind of flag. mayaCommand(**preset) # we give the dict to the maya command as kwargs.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/ea14b9fa-7e6b-4c8f-bd9d-8d396b7c5189%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CANESWi30PEPtVBTXSUKLVg7j%2BY3BXLPxBxw72imt_fXqcLnBUg%40mail.gmail.com.