|
|
@ -14,6 +14,7 @@ |
|
|
|
# along with Korman. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
# along with Korman. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
|
|
|
|
import bpy |
|
|
|
import bpy |
|
|
|
|
|
|
|
import itertools |
|
|
|
|
|
|
|
|
|
|
|
class ToolboxPanel: |
|
|
|
class ToolboxPanel: |
|
|
|
bl_category = "Tools" |
|
|
|
bl_category = "Tools" |
|
|
@ -45,6 +46,12 @@ class PlasmaToolboxPanel(ToolboxPanel, bpy.types.Panel): |
|
|
|
col.operator("object.plasma_move_selection_to_page", icon="BOOKMARKS", text="Move to Page") |
|
|
|
col.operator("object.plasma_move_selection_to_page", icon="BOOKMARKS", text="Move to Page") |
|
|
|
col.operator("object.plasma_select_page_objects", icon="RESTRICT_SELECT_OFF", text="Select Objects") |
|
|
|
col.operator("object.plasma_select_page_objects", icon="RESTRICT_SELECT_OFF", text="Select Objects") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
col.label("Package Sounds:") |
|
|
|
|
|
|
|
col.operator("object.plasma_toggle_sound_export", icon="MUTE_IPO_OFF", text="Enable All").enable = True |
|
|
|
|
|
|
|
all_sounds_export = all((i.package for i in itertools.chain.from_iterable(i.plasma_modifiers.soundemit.sounds for i in bpy.context.selected_objects if i.plasma_modifiers.soundemit.enabled))) |
|
|
|
|
|
|
|
col.operator("object.plasma_toggle_sound_export_selected", icon="OUTLINER_OB_SPEAKER", text="Disable Selection" if all_sounds_export else "Enable Selection") |
|
|
|
|
|
|
|
col.operator("object.plasma_toggle_sound_export", icon="MUTE_IPO_ON", text="Disable All").enable = False |
|
|
|
|
|
|
|
|
|
|
|
col.label("Textures:") |
|
|
|
col.label("Textures:") |
|
|
|
col.operator("texture.plasma_enable_all_textures", icon="TEXTURE", text="Enable All") |
|
|
|
col.operator("texture.plasma_enable_all_textures", icon="TEXTURE", text="Enable All") |
|
|
|
col.operator("texture.plasma_toggle_environment_maps", icon="IMAGE_RGB", text="Enable All EnvMaps").enable = True |
|
|
|
col.operator("texture.plasma_toggle_environment_maps", icon="IMAGE_RGB", text="Enable All EnvMaps").enable = True |
|
|
|