Timeline for Blender console when clicking on UI elements in python console
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 15 at 0:09 | comment | added | Armored Wolf | Well, the error above says specifically that None is being returned instead of a Set (like {'FINISHED'} OR {'CANCELLED'}. Using curly braces {} is how you define a Set in Python, so for some reason you never reach the correct return value. | |
Mar 14 at 21:49 | comment | added | arpit |
I am aware of return type and did check my code after your post. I always return {"FINISHED"} at the end of execute function. I am wondering what happens if my code in the execute fails. Would blender automatically return {"CANCELLED"} or other valid return value? Or I need to do error checking and return a valid value?
|
|
Mar 14 at 20:26 | history | answered | Armored Wolf | CC BY-SA 4.0 |