Hi all, I am trying to update all the tabs of the shaders (in the Attribute Editor) for every new shaders added. I chanced upon this Mel command - updateAE that I gather the information from here
I tried doing a simple test, while I have a few surface shaders in scene, and running the following code:
ssList = cmds.ls(type = 'surfaceShader')
for each in ssList:
mm.eval("updateAE \"string\" " + each)
But I got the following error instead,
TypeError: cannot concatenate 'str' and 'list' objects
or at times, this error:
RuntimeError: Error occurred during execution of MEL script
Line 1.33: Wrong number of arguments on call to updateAE.
Is this a viable solution else, are there any other similar scripting methods that will enable to update the attribute editor without using maya.api if possible?