Timeline for How to get the classes to be called by other addons?
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2023 at 9:05 | vote | accept | lee blues | ||
Apr 20, 2023 at 9:54 | vote | accept | lee blues | ||
Apr 21, 2023 at 8:56 | |||||
Apr 20, 2023 at 9:54 | history | edited | lee blues | CC BY-SA 4.0 |
added 1807 characters in body
|
Apr 20, 2023 at 8:25 | answer | added | Harry McKenzie♦ | timeline score: 0 | |
Apr 20, 2023 at 7:37 | comment | added | Gorgious |
make Cam_Base a base class (no inheritance) and define your child classes with Cam_0V0(Cam_Base, bpy.types.Operator): . Note that you won't be able to register Cam_Base
|
|
Apr 20, 2023 at 7:34 | comment | added | lee blues | So how do I change the code? | |
Apr 20, 2023 at 6:22 | comment | added | Gorgious |
AFAIK it won't work if you use inheritance in that way. An operator class must inherit directly from bpy.types.Operator to correctly register. It's a quirk of the API. You can use composition though, and inherit from Operator and another class
|
|
Apr 20, 2023 at 5:35 | history | edited | lee blues | CC BY-SA 4.0 |
edited title
|
Apr 20, 2023 at 5:29 | history | asked | lee blues | CC BY-SA 4.0 |