Post #1336: Mighty Pea:
📋 Metadata
- Author: roaoao
- Date: 2018-04-23 14:20:26
- Type:
discussion - Quality Score: 7/10
- Reply to: post_01335
🏷️ Tags
modal modal-editing advanced unsolved
⚙️ Related PME Features
- Modal Editor
- Python Scripting
💬 Content
Mighty Pea:
Hey roaoao,
I’m trying to set up a Modal for editing Wondermesh properties. How can I have regular mouse-movement control C.object.data.WBox.size_x, C.object.data.WBox.size_y and C.object.data.WBox.size_z at the same time, keeping their relative values (so if the values are x=2, y=3 and z=5 when entering the modal, moving my mouse will add or subtract 1 from each of these)?
On top of that, I’d still want to have three seperate hotkeys within the modal that let me tweak each value alone (say, q, w and e)
As a last request, I’d like to tweak another three values together, with the mousewheel.I’d want to set this up similarly for all of the different Wondermesh primitives, so if I could detect the name and fire off a different modal based on whether it’s WTube, Wbox_01 etc, that’d be great!
Will send you an example tomorrow.
Mighty Pea:
additionally, I’ve been hoping to find a way to do this:
Use the mouse-path over a few pixels to determine between different commands. For instance, when I move my mouse a few pixels up, compare to closest world (or local) coordinate (x, y or z) and initiate a grab locked to this axis. Nvil/Voidworld’s move/rotate/scale functioned like this, and it was much nicer than Blender’s MMB axis selector.
These tools (nvil’s move/rotate/scale) require a lot of code. It’s better to create a separate add-on for them. Can’t help you with it (good 3d math skills are required).
Way2Close:
Hey, just checking, is it normal to have this:
module changed on disk: C:\Users\User\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\pie_menu_editor__init_ _.py reloading…
in the console on startup?
Hi, I’m not sure how/where Blender stores module states, but try to save user preferences and restart Blender.