You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Received the following error when loading the .json file in Maya2019 (Product version: 2019.0.0.F) from C:/Users/<user>/Documents/maya/lightManager\lightFile_0916.json
# Traceback (most recent call last):
# File "C:/Users/oleu/Documents/maya/2019/scripts\lightingManager.py", line 178, in importLights
# self.setButtonColor()
# AttributeError: 'NoneType' object has no attribute 'intensity'
I coded along with the videos and had no errors up until video "69. Importing Our Lights".
Went back and checked my code against yours. Still didn't work. I loaded your example file and the same error was returned.
Not sure if its something that's changed in Maya 2019 or Python/ PyMel/ Qt/ etc. syntax, or if it's a system specific/ user error (probably the later).
Thanks!
The text was updated successfully, but these errors were encountered:
The error seems to be coming from when the code tries to set the light intensity and for some reason the light object doesn't have an intensity attribute.
After creating the light, can you print out the light and also type(light) to see what you get back?
Received the following error when loading the .json file in Maya2019 (Product version: 2019.0.0.F) from
C:/Users/<user>/Documents/maya/lightManager\lightFile_0916.json
.json extendson changed to .txt
lightFile_0916.txt
I coded along with the videos and had no errors up until video "69. Importing Our Lights".
Went back and checked my code against yours. Still didn't work. I loaded your example file and the same error was returned.
Not sure if its something that's changed in Maya 2019 or Python/ PyMel/ Qt/ etc. syntax, or if it's a system specific/ user error (probably the later).
Thanks!
The text was updated successfully, but these errors were encountered: