Hi, i’ ve a problem with this function:
bpy.context.space_data.region_3d
when i lunch the script it report this error
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'SpaceConsole' object has no attribute 'region_3d'
i tried to use the if function with the LEFTMOUSE so when i click in 3d viewport the function start but dont’ work, so i can make this function work?
p.s: i’m in modal mode