I'm here to report a bug since I cannot contact support directly since I am using an educational version of Maya 2024.
When I run a script in the script editor, there is a bug with the assignCreatedShader command. If I open a script that has the command, even if it worked previously, upon reopening or copying in the text directly, the syntax highlighting is gone and my code throws an error at the line, as if it cannot understand the command.
See first screenshot
// Error: line 31: Cannot find procedure "assignCreatedShader".
If I manually go in, and re-type the command, it turns the correct syntax color, but throws the same error again.
See second screenshot.
The only way around the bug is to manually right click > assign new material to my object and then copy in the echoed command from the history. Then my code will run as intended with no errors thrown.
Can someone at Autodesk please fix this?
Solved! Go to Solution.