Setting up a PME Dialog pop up for orientations, snapping, and proportional, etc, and ran into a few things - not sure if its PME or Blender2.8 beta stuff, but here it is.
Adding the Snapping Elements to a PME dialog pop up by right-clicking on the icon in the header of a 3Dview (type set as Custom (List)), they will show up as a column of icons. Its nice to do it this way since the buttons will remain highlighted to show which is selected.
snapping as custom list:
This seems to work for most things in that header area except Transform Orientations (Global, Local, Gimbal, etc). When using right-click to add Orientations, after selecting the button in my dialog pop up, it skips the part where it asks you how you want to use the operator (the ‘select type’ dialog box), leaving scene.type in the PME editor command tab. Custom created orientations (+) seem to have similar problem
transforms as custom list:
When trying to set up the Orientations as a Command (not using right-click), the button responds as if its a property with a pull down menu with all orientations, instead of a button with a single specific orientation
Also, setting Snapping Elements as ‘Property’ type has different results than when setting Pivot Points to ‘Property’ type. for snapping elements it makes a column list with just icons (actually kinda cool, but maybe not intended?), where as with Pivots its a drop down menu.
2)how do I enable a multi object operation? in this case select multiple object and assign the "autosmooth option to them, it works only with the active object atm.
if you hold down the Alt key while applying autosmooth, it will set that parameter for all selected objects. This works with many things in blender. (Blender feature, not PME)
Hmm, can’t reproduce. Can you send me a screenshot (or a video) when/where you right-click Orientations button?
Try this code instead (Command tab):
C.scene.transform_orientation = 'GLOBAL'
Yep, Property tab uses prop function which can generate different widgets depending on the data. Check my examples with expand option above. They can be useful here.
If you change the icon of a parameter that has a check box, it will turn the button into a highlighted button, indicating which state its in. This can add some flexibility when laying out a custom dialog box or pie. I’m not sure if this works with all properties…
Error: Traceback (most recent call last):
File “C:\blender-2.80.0-git.c9df453ce70b-windows64\2.80\scripts\modules\addon_utils.py”, line 446, in disable
mod.unregister()
File “C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\pie_menu_editor_init_.py”, line 408, in unregister
re_enable_data = property_utils.to_dict(prefs())
File “C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\pie_menu_editor\addon.py”, line 18, in prefs
return bpy.context.user_preferences.addons[ADDON_ID].preferences
AttributeError: ‘Context’ object has no attribute ‘user_preferences’
When i check addon in prefs:
Exception in module register(): C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\pie_menu_editor_init_.py
Traceback (most recent call last):
File “C:\blender-2.80.0-git.c9df453ce70b-windows64\2.80\scripts\modules\addon_utils.py”, line 393, in enable
mod.register()
File “C:\Users\radi0n\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons\pie_menu_editor_init_.py”, line 375, in register
bpy.utils.register_class(PME_OT_wait_context)
ValueError: register_class(…): already registered as a subclass
Yep, try this fix (updated). Still testing it but looks like it works. Extract the files to scripts/addons/pie_menu_editor and restart Blender.
New API changes: C.user_preferences is renamed to C.preferences and 'USER_PREFERENCES' to 'PREFERENCES'. Update these values in your menus if you use them.
@Pinhead, this issue is not fixed yet (will fix it today):
When i uncheck addon:
...
When i check addon in prefs:
...
I created toolbar at the top. Its is very simple and works perfectly.
But when i go to preferences window - general tab. toolbar disappers.
It does not bother so much but maybe it can be easily fixed.