Post #1339: Mighty Pea:
📋 Metadata
- Author: roaoao
- Date: 2018-04-24 12:08:10
- Type:
answer - Quality Score: 8/10
🏷️ Tags
modal hotkeys property-control advanced solved
⚙️ Related PME Features
- Modal Editor
- Macro Editor
- Hotkey Configuration
- Python Scripting
💬 Content
Mighty Pea:
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!
Here is an example (json file - add_cone_modal.zip (543 Bytes) and video).
I don’t have Wondermesh add-on so I’ve used Add Cone tool.