[Bf-extensions-cvs] [713fa9b2] master: Remove to contrib: add advanced objects series: T63750
meta-androcto
noreply at git.blender.org
Sun Apr 28 03:57:20 CEST 2019
Commit: 713fa9b2c412341a7b255680cfddefdd61e40d83
Author: meta-androcto
Date: Sun Apr 28 11:56:49 2019 +1000
Branches: master
https://developer.blender.org/rBA713fa9b2c412341a7b255680cfddefdd61e40d83
Remove to contrib: add advanced objects series: T63750
===================================================================
D add_advanced_objects_menu/__init__.py
D add_advanced_objects_menu/add_light_template.py
D add_advanced_objects_menu/add_mesh_aggregate.py
D add_advanced_objects_menu/arrange_on_curve.py
D add_advanced_objects_menu/circle_array.py
D add_advanced_objects_menu/copy2.py
D add_advanced_objects_menu/cubester.py
D add_advanced_objects_menu/make_struts.py
D add_advanced_objects_menu/mesh_easylattice.py
D add_advanced_objects_menu/object_add_chain.py
D add_advanced_objects_menu/oscurart_chain_maker.py
D add_advanced_objects_menu/pixelate_3d.py
D add_advanced_objects_menu/random_box_structure.py
D add_advanced_objects_menu/rope_alpha.py
D add_advanced_objects_menu/scene_objects_bi.py
D add_advanced_objects_menu/scene_objects_cycles.py
D add_advanced_objects_menu/scene_texture_render.py
D add_advanced_objects_menu/trilighting.py
D add_advanced_objects_panels/DelaunayVoronoi.py
D add_advanced_objects_panels/__init__.py
D add_advanced_objects_panels/delaunay_voronoi.py
D add_advanced_objects_panels/drop_to_ground.py
D add_advanced_objects_panels/object_laplace_lightning.py
D add_advanced_objects_panels/object_mangle_tools.py
D add_advanced_objects_panels/oscurart_constellation.py
D add_advanced_objects_panels/unfold_transition.py
===================================================================
diff --git a/add_advanced_objects_menu/__init__.py b/add_advanced_objects_menu/__init__.py
deleted file mode 100644
index 91ddcb18..00000000
--- a/add_advanced_objects_menu/__init__.py
+++ /dev/null
@@ -1,547 +0,0 @@
-# ##### BEGIN GPL LICENSE BLOCK #####
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# ##### END GPL LICENSE BLOCK #####
-
-# Contributed to by:
-# meta-androcto, Bill Currie, Jorge Hernandez - Melenedez Jacob Morris, Oscurart #
-# Rebellion, Antonis Karvelas, Eleanor Howick, lijenstina, Daniel Schalla, Domlysz #
-# Unnikrishnan(kodemax), Florian Meyer, Omar ahmed, Brian Hinton (Nichod), liero #
-# Atom, Dannyboy, Mano-Wii, Kursad Karatas, teldredge, Phil Cote #
-
-bl_info = {
- "name": "Add Advanced Objects",
- "author": "Meta Androcto",
- "version": (0, 1, 6),
- "blender": (2, 78, 0),
- "location": "View3D > Add ",
- "description": "Add Object & Camera extras",
- "warning": "",
- "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6"
- "/Py/Scripts/Object/Add_Advanced",
- "category": "Object"}
-
-if "bpy" in locals():
- import importlib
-
- importlib.reload(add_light_template)
- importlib.reload(scene_objects_bi)
- importlib.reload(scene_objects_cycles)
- importlib.reload(scene_texture_render)
- importlib.reload(trilighting)
- importlib.reload(pixelate_3d)
- importlib.reload(object_add_chain)
- importlib.reload(oscurart_chain_maker)
- importlib.reload(circle_array)
- importlib.reload(copy2)
- importlib.reload(make_struts)
- importlib.reload(random_box_structure)
- importlib.reload(cubester)
- importlib.reload(rope_alpha)
- importlib.reload(add_mesh_aggregate)
- importlib.reload(arrange_on_curve)
- importlib.reload(mesh_easylattice)
-
-else:
- from . import add_light_template
- from . import scene_objects_bi
- from . import scene_objects_cycles
- from . import scene_texture_render
- from . import trilighting
- from . import pixelate_3d
- from . import object_add_chain
- from . import oscurart_chain_maker
- from . import circle_array
- from . import copy2
- from . import make_struts
- from . import random_box_structure
- from . import cubester
- from . import rope_alpha
- from . import add_mesh_aggregate
- from . import arrange_on_curve
- from . import mesh_easylattice
-
-
-import bpy
-from bpy.types import (
- AddonPreferences,
- Menu,
- PropertyGroup,
-)
-from bpy.props import (
- BoolProperty,
- EnumProperty,
- FloatProperty,
- IntProperty,
- StringProperty,
- PointerProperty,
-)
-
-
-# Define the "Scenes" menu
-class VIEW3D_MT_scene_elements_add(Menu):
- bl_idname = "VIEW3D_MT_scene_elements"
- bl_label = "Test Scenes"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("bi.add_scene",
- text="Scene_Objects_BI")
- layout.operator("objects_cycles.add_scene",
- text="Scene_Objects_Cycles")
- layout.operator("objects_texture.add_scene",
- text="Scene_Textures_Cycles")
-
-
-# Define the "Lights" menu
-class VIEW3D_MT_mesh_lights_add(Menu):
- bl_idname = "VIEW3D_MT_scene_lights"
- bl_label = "Lighting Sets"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("object.add_light_template",
- text="Add Light Template")
- layout.operator("object.trilighting",
- text="Add Tri Lighting")
-
-
-# Define the "Chains" menu
-class VIEW3D_MT_mesh_chain_add(Menu):
- bl_idname = "VIEW3D_MT_mesh_chain"
- bl_label = "Chains"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- layout.operator("mesh.primitive_chain_add", icon="LINKED")
- layout.operator("mesh.primitive_oscurart_chain_add", icon="LINKED")
-
-
-# Define the "Array" Menu
-class VIEW3D_MT_array_mods_add(Menu):
- bl_idname = "VIEW3D_MT_array_mods"
- bl_label = "Array Mods"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
-
- layout.menu("VIEW3D_MT_mesh_chain", icon="LINKED")
-
- layout.operator("objects.circle_array_operator",
- text="Circle Array", icon="MOD_ARRAY")
- layout.operator("object.agregate_mesh",
- text="Aggregate Mesh", icon="MOD_ARRAY")
- layout.operator("mesh.copy2",
- text="Copy To Vert/Edge", icon="MOD_ARRAY")
-
-
-# Define the "Blocks" Menu
-class VIEW3D_MT_quick_blocks_add(Menu):
- bl_idname = "VIEW3D_MT_quick_tools"
- bl_label = "Block Tools"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
-
- layout.operator("object.pixelate", icon="MESH_GRID")
- layout.operator("mesh.generate_struts",
- text="Struts", icon="GRID")
- layout.operator("object.make_structure",
- text="Random Boxes", icon="SEQ_SEQUENCER")
- layout.operator("object.easy_lattice",
- text="Easy Lattice", icon="MOD_LATTICE")
-
-
-# Define the "Phsysics Tools" Menu
-class VIEW3D_MT_Physics_tools_add(Menu):
- bl_idname = "VIEW3D_MT_physics_tools"
- bl_label = "Physics Tools"
-
- def draw(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
-
- layout.operator("ball.rope",
- text="Wrecking Ball", icon='PHYSICS')
- layout.operator("clot.rope",
- text="Cloth Rope", icon='PHYSICS')
-
-
-# Define "Extras" menu
-def menu(self, context):
- layout = self.layout
- layout.operator_context = 'INVOKE_REGION_WIN'
- self.layout.separator()
- self.layout.menu("VIEW3D_MT_scene_elements", icon="SCENE_DATA")
- self.layout.menu("VIEW3D_MT_scene_lights", icon="LIGHT_SPOT")
- self.layout.separator()
- self.layout.menu("VIEW3D_MT_array_mods", icon="MOD_ARRAY")
- self.layout.menu("VIEW3D_MT_quick_tools", icon="MOD_BUILD")
- self.layout.menu("VIEW3D_MT_physics_tools", icon="PHYSICS")
-
-
-# Addons Preferences
-class AdvancedObjPreferences(AddonPreferences):
- bl_idname = __name__
-
- show_menu_list: BoolProperty(
- name="Menu List",
- description="Show/Hide the Add Menu items",
- default=False
- )
- show_panel_list: BoolProperty(
- name="Panels List",
- description="Show/Hide the Panel items",
- default=False
- )
-
- def draw(self, context):
- layout = self.layout
-
- icon_1 = "TRIA_RIGHT" if not self.show_menu_list else "TRIA_DOWN"
- box = layout.box()
- box.prop(self, "show_menu_list", emboss=False, icon=icon_1)
-
- if self.show_menu_list:
- box.label(text="Items located in the Add Menu (default shortcut Ctrl + A):",
- icon="LAYER_USED")
- box.label(text="Test Scenes:", icon="LAYER_ACTIVE")
- box.label(text="Scene Objects BI, Scene Objects Cycles, Scene Textures Cycles",
- icon="LAYER_USED")
- box.label(text="Lighting Sets:", icon="LAYER_ACTIVE")
- box.label(text="Add Light Template, Add Tri Lighting", icon="LAYER_USED")
- box.label(text="Array Mods:", icon="LAYER_ACTIVE")
- box.label(text="Circle Array, Chains submenu, Copy Vert/Edge and Aggregate Mesh",
- icon="LAYER_ACTIVE")
- box.label(text="Chains Submenu - Add Chain, Chain to Bones",
- icon="LAYER_ACTIVE")
- box.label(text="Block Tools:", icon="LAYER_ACTIVE")
- box.label(text="Pixelate Object, Struts, Random Boxes, Easy Lattice",
- icon="LAYER_USED")
- box.label(text="Physics Tools:", icon="LAYER_ACTIVE")
- box.label(text="Wrecking Ball and Cloth Rope", icon="LAYER_USED")
-
- icon_2 = "TRIA_RIGHT" if not self.show_panel_list else "TRIA_DOWN"
- box = layout.box()
- box.prop(self, "show_panel_list", emboss=False, icon=icon_2)
-
- if self.show_panel_list:
- box.label(text="Panels located in 3D View Tools Region > Create",
- icon="LAYER_ACTIVE")
- box.label(text="CubeSter", icon="LAYER_USED")
- box.label(text="Arrange on Curve (Shown if an Active Curve Object is it the 3D View)",
- icon="LAYER_USED")
-
-
-# Cubester update functions
-def find_audio_length(self, context):
- adv_obj = context.scene.advanced_objects
- audio_file = adv_obj.cubester_audio_path
- length = 0
-
- if audio_file != "":
- # confirm that strip hasn't been loaded yet
- get_sequence = getattr(context.scene.sequence_editor, "sequences_all", [])
- for strip in get_sequence:
- if type(strip) == bpy.types.SoundSequence and strip.sound.filepath == audio_file:
- length = strip.frame_final_duration
-
- if length == 0:
- area = context.area
- old_type = area.type
- area.type = "SEQUENCE_EDITOR"
- try:
- bpy.ops.sequencer.sound_strip_add(filepath=audio_file)
- adv_obj.cubester_check_audio = True
- except Exception as
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list