Post #237: There are a few things I’m trying that I could use a hand with, so if anyone kno
📋 Metadata
- Author: Michael_Knubben
- Date: 2016-07-29 06:24:07
- Type:
question - Quality Score: 7/10
- Replies (1): post_00239
🏷️ Tags
popup-dialog pie-menu conditional-logic intermediate unsolved
⚙️ Related PME Features
- Pie Menu Editor
- Popup Dialog Editor
- Macro Editor
- Python Scripting
💬 Content
There are a few things I’m trying that I could use a hand with, so if anyone knows how to do these things let me know!
First off, I’m trying to create a command that adds a Subsurf modifier to an object if it doesn’t already have one, and when there is one, will toggle its visibility on and off.
Similarly, I have a ‘Subdivisions’ slider in a popup, which is great, but: if the object has no subsurf modifier, there’s an empty space where the control would normally be, and it messes with the layout:


It’d be great if the slider could just be a button to add the subsurf modifier when there’s none present.
I couldn’t find a function to increase or decrease a subsurf’s subdivion level by 1, only to set it to a specific level. Is this possible without scripting?
Lastly, is it possible to align single buttons? I’d like to have this looking the way it does in the editor
aafb43c588dc7c74658229bc94ac0795.png333×602 29.4 KB