Hello everyone, I’ve been attempting to create a script that needs to create a python controller under game logic and change its mode to ‘MODULE’
The code I have for adding my game logic controller is:
When using the info window when changing a python controller to ‘MODULE’ manually, blender shows that it is using the following command:
bpy.context.object.mode = 'MODULE'
When I try to use this inside my code it gives me an error stating that:
AttributeError: bpy_struct: attribute "mode" from "Object" is read-only
Any help would be greatly appreciated