[Bf-extensions-cvs] [7d9450b5] master: remove duplicated scripts: T51110
meta-androcto
noreply at git.blender.org
Fri Apr 7 11:16:07 CEST 2017
Commit: 7d9450b557d5f0bee6402dd64b6b5e0f65890700
Author: meta-androcto
Date: Fri Apr 7 19:15:40 2017 +1000
Branches: master
https://developer.blender.org/rBAC7d9450b557d5f0bee6402dd64b6b5e0f65890700
remove duplicated scripts: T51110
===================================================================
D add_mesh_chain_rope/__init__.py
D add_mesh_chain_rope/oscurart_chain_maker.py
D add_mesh_chain_rope/oscurart_rope_maker.py
D add_test_scene_elements/__init__.py
D add_test_scene_elements/add_light_template.py
D add_test_scene_elements/camera_turnaround.py
D add_test_scene_elements/scene_camera.py
D add_test_scene_elements/scene_materials.py
D add_test_scene_elements/scene_objects.py
D add_test_scene_elements/scene_objects_cycles.py
D add_test_scene_elements/scene_texture_render.py
D add_test_scene_elements/trilighting.py
D mesh_easylattice.py
D object_drop_to_ground.py
D object_laplace_lightning.py
D object_mangle_tools.py
D space_view3d_arrange_on_curve.py
===================================================================
diff --git a/add_mesh_chain_rope/__init__.py b/add_mesh_chain_rope/__init__.py
deleted file mode 100644
index eac23b08..00000000
--- a/add_mesh_chain_rope/__init__.py
+++ /dev/null
@@ -1,37 +0,0 @@
-bl_info = {
- "name": "Oscurart Chain and Rope Maker",
- "author": "Oscurart",
- "version": (1, 1),
- "blender": (2, 63, 0),
- "location": "Add > Mesh",
- "description": "Create chains and ropes along armatures/curves",
- "warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
- "Scripts/Add_Mesh/Oscurart_Chain_Rope_Maker",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- "category": "Object"}
-
-
-import bpy
-from .oscurart_rope_maker import *
-from .oscurart_chain_maker import *
-
-def register():
- bpy.utils.register_class(OBJECT_OT_add_object)
- bpy.types.INFO_MT_curve_add.append(oscRopeButton)
- bpy.utils.register_module(__name__)
- bpy.types.INFO_MT_mesh_add.append(menu_oscChain)
-
-def unregister():
- bpy.utils.unregister_class(OBJECT_OT_add_object)
- bpy.types.INFO_MT_curve_add.remove(oscRopeButton)
- bpy.utils.unregister_module(__name__)
- bpy.types.INFO_MT_mesh_add.remove(menu_oscChain)
-
-if __name__ == "__main__":
- register()
-
-
-
-
-
diff --git a/add_mesh_chain_rope/oscurart_chain_maker.py b/add_mesh_chain_rope/oscurart_chain_maker.py
deleted file mode 100644
index c6b8a048..00000000
--- a/add_mesh_chain_rope/oscurart_chain_maker.py
+++ /dev/null
@@ -1,190 +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 #####
-
-bl_info = {
- "name": "Oscurart Chain Maker",
- "author": "Oscurart",
- "version": (1,1),
- "blender": (2, 56, 0),
- "location": "Add > Mesh > Oscurart Chain",
- "description": "Create chain links from armatures.",
- "warning": "",
- "wiki_url": "oscurart.blogspot.com",
- "tracker_url": "",
- "category": "Object"}
-
-
-
-
-
-import bpy
-
-
-def makeChain (self, context, mult, curverig):
-
- if bpy.context.active_object.type == 'ARMATURE':
- bpy.ops.object.mode_set(mode='OBJECT')
- VAR_SWITCH=abs(1)
- ARMATURE=bpy.context.active_object
- def creahuesocero(hueso):
- ## CREO DATA PARA ESLABON
- mesh=bpy.data.meshes.new("objectData"+str(hueso.name))
- object=bpy.data.objects.new("EslabonCero"+str(hueso.name),mesh)
- mesh.from_pydata(
- [(-0.04986128956079483,-0.6918092370033264,-0.17846597731113434),(-0.04986128956079483,-0.6918091773986816,0.17846640944480896),(-0.049861326813697815,-0.154555082321167,0.17846627533435822),(-0.049861326813697815,-0.15455523133277893,-0.17846614122390747),(-0.04986133798956871,-0.03475356101989746,0.25805795192718506),(-0.04986133798956871,-0.03475397825241089,-0.25805795192718506),(-0.049861278384923935,-0.8116106986999512,-0.2580576539039612),(-0.049861278384923935,-0.8116 [...]
- [(1,2),(0,3),(3,5),(2,4),(0,6),(5,6),(1,7),(4,7),(0,8),(1,8),(7,9),(6,9),(8,9),(2,10),(3,10),(4,11),(5,11),(10,11),(5,12),(12,13),(11,13),(13,14),(4,14),(10,16),(15,16),(3,15),(2,17),(16,17),(9,19),(18,19),(6,18),(7,20),(19,20),(8,22),(21,22),(1,21),(0,23),(22,23),(14,20),(12,18),(15,23),(17,21),(12,15),(13,16),(14,17),(20,21),(19,22),(18,23)],
- [(6,0,3,5),(1,7,4,2),(0,6,9,8),(8,9,7,1),(2,4,11,10),(10,11,5,3),(11,13,12,5),(4,14,13,11),(3,15,16,10),(10,16,17,2),(6,18,19,9),(9,19,20,7),(1,21,22,8),(23,0,8,22),(7,20,14,4),(5,12,18,6),(0,23,15,3),(2,17,21,1),(16,15,12,13),(17,16,13,14),(22,21,20,19),(23,22,19,18),(21,17,14,20),(15,23,18,12)]
- )
- bpy.context.scene.objects.link(object)
- ## ESCALO EL HUESO
- bpy.data.objects['EslabonCero'+str(hueso.name)].scale= (hueso.length*mult,hueso.length*mult,hueso.length*mult)
- ## EMPARENTO
- bpy.data.objects['EslabonCero'+str(hueso.name)].parent=ARMATURE
- bpy.data.objects['EslabonCero'+str(hueso.name)].parent_type = 'BONE'
- bpy.data.objects['EslabonCero'+str(hueso.name)].parent_bone=hueso.name
- def creahuesonoventa(hueso):
- ## CREO DATA PARA ESLABON
- mesh=bpy.data.meshes.new("objectData"+str(hueso.name))
- object=bpy.data.objects.new("EslabonNov"+str(hueso.name),mesh)
- mesh.from_pydata(
- [(0.1784660965204239,-0.6918091773986816,-0.049861203879117966),(-0.1784662902355194,-0.6918091773986816,-0.04986126348376274),(-0.17846627533435822,-0.1545550525188446,-0.04986134544014931),(0.17846617102622986,-0.15455520153045654,-0.04986128583550453),(-0.25805795192718506,-0.03475359082221985,-0.049861375242471695),(0.25805795192718506,-0.034753888845443726,-0.04986129328608513),(0.2580578327178955,-0.8116105794906616,-0.04986117407679558),(-0.2580580413341522,-0.81161051 [...]
- [(1,2),(0,3),(3,5),(2,4),(0,6),(5,6),(1,7),(4,7),(0,8),(1,8),(7,9),(6,9),(8,9),(2,10),(3,10),(4,11),(5,11),(10,11),(5,12),(12,13),(11,13),(13,14),(4,14),(10,16),(15,16),(3,15),(2,17),(16,17),(9,19),(18,19),(6,18),(7,20),(19,20),(8,22),(21,22),(1,21),(0,23),(22,23),(14,20),(12,18),(15,23),(17,21),(12,15),(13,16),(14,17),(20,21),(19,22),(18,23)],
- [(6,0,3,5),(1,7,4,2),(0,6,9,8),(8,9,7,1),(2,4,11,10),(10,11,5,3),(11,13,12,5),(4,14,13,11),(3,15,16,10),(10,16,17,2),(6,18,19,9),(9,19,20,7),(1,21,22,8),(23,0,8,22),(7,20,14,4),(5,12,18,6),(0,23,15,3),(2,17,21,1),(16,15,12,13),(17,16,13,14),(22,21,20,19),(23,22,19,18),(21,17,14,20),(15,23,18,12)]
- )
- bpy.context.scene.objects.link(object)
- ## ESCALO EL HUESO
- bpy.data.objects['EslabonNov'+str(hueso.name)].scale= (hueso.length*mult,hueso.length*mult,hueso.length*mult)
- ## EMPARENTO
- bpy.data.objects['EslabonNov'+str(hueso.name)].parent=ARMATURE
- bpy.data.objects['EslabonNov'+str(hueso.name)].parent_type = 'BONE'
- bpy.data.objects['EslabonNov'+str(hueso.name)].parent_bone=hueso.name
-
- for hueso in bpy.context.active_object.pose.bones:
- if VAR_SWITCH == 1:
- creahuesocero(hueso)
- else:
- creahuesonoventa(hueso)
- if VAR_SWITCH == 1:
- VAR_SWITCH = 0
- print(VAR_SWITCH)
- else :
- VAR_SWITCH = 1
- print(VAR_SWITCH)
- # SI NO TILDAMOS CURVERIG
- if curverig == True:
- # VARIABLES
- LISTA_POINTC=[]
- ACTARM=bpy.context.active_object
- # CREO DATA , OBJETO Y LO CONECTO A LA ESCENA
- crv= bpy.data.curves.new("CurvaCable", "CURVE")
- obCable=bpy.data.objects.new("Cable",crv)
- bpy.context.scene.objects.link(obCable)
- # SETEO ATRIBUTOS
- crv.dimensions = "3D"
- crv.resolution_u = 10
- crv.resolution_v = 10
- crv.twist_mode = "MINIMUM"
- # CREO LISTA DE COORDENADAS DE TAIL Y HEAD
- LISTA_POINTC.append((
- ACTARM.data.bones[0].head_local[0],
- ACTARM.data.bones[0].head_local[1],
- ACTARM.data.bones[0].head_local[2],
- 1
- ))
- print("huesos: "+ str(len(ACTARM.data.bones)))
- for hueso in ACTARM.data.bones:
- LISTA_POINTC.append((hueso.
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list