gd-3d / bless

blender level editor software suite
MIT License
21 stars 2 forks source link

wasd movement #4

Open yankscally opened 3 months ago

yankscally commented 3 months ago

going to attempt to use hotkeys to setup operators that allows navigation and editing at the same time.. hopefully

example from Valy:

AlxEditKeymaps(KeyconfigSource="Blender", ConfigSpaceName="3D View", ItemidName="view3d.move", MapType="KEYBOARD", Key="GRLESS", UseShift=True, Active=True) view3d.move is the op to move the viewport around.

bikemurt commented 3 months ago

These docs spring to mind as something that might be helpful:

https://docs.blender.org/api/current/bpy.types.Operator.html

There's an example in here of modal code with the proper event type:

https://blender.stackexchange.com/questions/71454/is-it-possible-to-make-a-sequence-of-renders-and-give-the-user-the-option-to-can/71830#71830

I remember toying around with it, you can crash blender real fast if you don't specify the proper event time or if you try to print to console every event process.