[Bf-extensions-cvs] [eab846e] master: Clean-up: bl_info['tracker_url'] updated to developer.blender.org, some minor other edits
CoDEmanX
noreply at git.blender.org
Tue Feb 4 02:56:18 CET 2014
Commit: eab846e29355628b57f0a13303f1125325773b1b
Author: CoDEmanX
Date: Tue Feb 4 02:56:01 2014 +0100
https://developer.blender.org/rBACeab846e29355628b57f0a13303f1125325773b1b
Clean-up: bl_info['tracker_url'] updated to developer.blender.org, some minor other edits
===================================================================
M add_mesh_building_objects/__init__.py
M add_mesh_building_objects/add_mesh_balcony.py
M add_mesh_building_objects/add_mesh_beam_builder.py
M add_mesh_building_objects/add_mesh_sove.py
M add_mesh_building_objects/add_mesh_window.py
M add_mesh_chain_rope/__init__.py
M add_mesh_chain_rope/oscurart_chain_maker.py
M add_mesh_chain_rope/oscurart_rope_maker.py
M add_mesh_clusters/__init__.py
M add_mesh_rocks/__init__.py
M add_mesh_symmetrical_empty.py
M anim_selection_sets.py
M animation_motion_trail.py
M btrace/__init__.py
M btrace/bTrace.py
M cmu_mocap_browser/__init__.py
M cursor_control/__init__.py
M curve_tools.py
M development_class_viewer.py
M ewoc_projects_tools/mesh_deathguppie.py
M ewoc_projects_tools/mesh_edgegrow.py
M ewoc_projects_tools/mesh_edgetune.py
M ewoc_projects_tools/mesh_fanconnect.py
M ewoc_projects_tools/mesh_floodsel.py
M ewoc_projects_tools/mesh_innerweld.py
M ewoc_projects_tools/mesh_laprelax.py
M ewoc_projects_tools/mesh_paredge.py
M ewoc_projects_tools/mesh_quadder.py
M ewoc_projects_tools/mesh_selproject.py
M ewoc_projects_tools/mesh_straightenplus.py
M ewoc_projects_tools/object_decouple.py
M ewoc_projects_tools/object_fastorigin.py
M ewoc_projects_tools/object_keeptrans.py
M geodesic_domes/__init__.py
M io_atomblend_utilities/__init__.py
M io_directx_bel/__init__.py
M io_export_marmalade.py
M io_export_md3.py
M io_import_BrushSet.py
M io_import_LRO_Lola_MGS_Mola_img.py
M io_import_lipSync_Importer.py
M io_import_sound_to_anim.py
M io_import_voodoo_camera.py
M io_mesh_gwyddion/__init__.py
M io_mesh_xyz/__init__.py
M io_scene_cod/__init__.py
M io_scene_fpx/__init__.py
M io_scene_fpx/fpx_import.py
M mesh_discombobulator.py
M mesh_easylattice.py
M mesh_edge_intersection_tools.py
M mesh_edgetools.py
M mesh_extra_tools/__init__.py
M mesh_extra_tools/mesh_bevel_witold.py
M mesh_extra_tools/mesh_bump.py
M mesh_extra_tools/mesh_filletplus.py
M mesh_extra_tools/mesh_mextrude_plus.py
M mesh_extra_tools/mesh_normal_smooth.py
M mesh_extrude_along_curve.py
M mesh_face_info_select.py
M mesh_insert_edge_ring.py
M mesh_select_tools/__init__.py
M mesh_select_tools/mesh_index_select.py
M mesh_select_tools/mesh_select_by_direction.py
M mesh_select_tools/mesh_select_by_edge_length.py
M mesh_select_tools/mesh_select_by_pi.py
M mesh_select_tools/mesh_select_checkered.py
M mesh_select_tools/mesh_select_connected_faces.py
M mesh_select_tools/mesh_select_innermost.py
M mesh_select_tools/mesh_selection_topokit.py
M mesh_select_vertex_groups.py
M mesh_show_vgroup_weights.py
M object_batch_rename_datablocks.py
M object_booleans.py
M object_creaprim.py
M object_drop_to_ground.py
M object_laplace_lightning.py
M object_mangle_tools.py
M object_powerlib.py
M online_mat_lib/__init__.py
M oscurart_futurism.py
M oscurart_mesh_thread.py
M particle_hair_lab.py
M render_auto_save.py
M render_clay.py
M render_time.py
M render_to_print.py
M sequencer_extra_actions/__init__.py
M sequencer_jumptocut.py
M sequencer_tools/__init__.py
M space_view3d_add_surround_cameras.py
M space_view3d_enhanced_3d_cursor.py
M space_view3d_game_props_visualiser.py
M space_view3d_manipulator_Menu.py
M space_view3d_objects_panel.py
M space_view3d_paint_bprojection.py
M space_view3d_quickPrefs.py
M space_view3d_simple_align.py
M system_keyboard_svg.py
M system_project_folder.py
M text_editor_pasteall.py
M text_intellisense.py
M ui_layer_manager.py
M wetted_mesh.py
===================================================================
diff --git a/add_mesh_building_objects/__init__.py b/add_mesh_building_objects/__init__.py
index 19623aa..49b7a81 100644
--- a/add_mesh_building_objects/__init__.py
+++ b/add_mesh_building_objects/__init__.py
@@ -26,10 +26,8 @@ bl_info = {
"location": "View3D > Add > Mesh > Cad Objects",
"description": "Add building object types",
"warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\
- "Scripts",
- "tracker_url": "https://projects.blender.org/tracker/index.php?"\
- "func=detail&aid=32711",
+ "wiki_url": "",
+ "tracker_url": "https://developer.blender.org/T32711",
"category": "Add Mesh"}
diff --git a/add_mesh_building_objects/add_mesh_balcony.py b/add_mesh_building_objects/add_mesh_balcony.py
index 4648849..d80f0ee 100644
--- a/add_mesh_building_objects/add_mesh_balcony.py
+++ b/add_mesh_building_objects/add_mesh_balcony.py
@@ -4,7 +4,6 @@ bl_info = {
"author": "SayPRODUCTIONS",
"version": (1, 0),
"blender": (2, 59, 0),
- "api": 33333,
"location": "View3D > Add > Mesh > Say3D",
"description": "Balcony olusturma",
"warning": "",
diff --git a/add_mesh_building_objects/add_mesh_beam_builder.py b/add_mesh_building_objects/add_mesh_beam_builder.py
index 446009e..1fe695e 100644
--- a/add_mesh_building_objects/add_mesh_beam_builder.py
+++ b/add_mesh_building_objects/add_mesh_beam_builder.py
@@ -23,21 +23,22 @@ bl_info = {
"version": (0, 1, 3),
"blender": (2, 60, 0),
"location": "View3D > Add > Mesh",
- "warning": "Currently under development.",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/BeamBuilder",
- "tracker_url": "https://projects.blender.org/tracker/index.php?func=detail&aid=26911",
+ "warning": "Currently under development.",
+ "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
+ "Scripts/Add_Mesh/BeamBuilder",
+ "tracker_url": "https://developer.blender.org/Taid=26911",
"category": "Add Mesh"}
#
# Creates a rectangluar, 'C', 'L', 'T', or 'I' - type beam.
#
-
+
# Version History
#
# v0.1 - Script only generates a multi-sided mesh object,
# initial release for testing. 3/12/11
#
-# v0.1.1 - Added 'C'-type beam, updated to work with
+# v0.1.1 - Added 'C'-type beam, updated to work with
# api r35499. 3/13/11
#
# v0.1.2 - Totally changed the way beams are created, size
@@ -45,15 +46,15 @@ bl_info = {
# (x,y,z). Added ability to taper beams as well.
# Add 'L' - type beam
# Add 'T' - type beam
-# Add 'I' - type beam
+# Add 'I' - type beam
#
# v0.1.3 - Updated to work with api r41226, including using object_utils.py -
# part of blender's bpy_extras scripts. This is what handles
# the 'align to view', 'location', & 'rotation' options in the
# toolshelf when creating mesh. Added wiki & tracker url. Fixed
# a few bugs & fixed some debug prints that were still printing
-# to console.
-#
+# to console.
+#
import bpy
@@ -66,17 +67,17 @@ def create_mesh (self, context, name, verts, faces, debug):
# verts - a list of vertex tuples
# faces - a list of face tuples
# debug - debug flag - if true prints data to console
-
+
# Actually create mesh and object
mesh = bpy.data.meshes.new(name)
# add verts & faces to object
mesh.from_pydata(verts, [], faces)
mesh.update(calc_edges=True)
-
+
if debug:
- print("create_mesh function called and finished")
-
+ print("create_mesh function called and finished")
+
return object_utils.object_data_add(context, mesh, operator=self)
@@ -85,8 +86,8 @@ def recalc_normals(debug):
# parts of this script creates faces that are backwards or
# have thier normals facing the wrong way, so recalculate them
# debug - debug flag - if true prints data to console
-
-
+
+
if bpy.context.mode != 'EDIT_MESH':
bpy.ops.object.editmode_toggle()
# Recalcuate normals
@@ -98,7 +99,7 @@ def recalc_normals(debug):
bpy.ops.mesh.normals_make_consistent()
if debug:
print("\nEditMode")
-
+
return
@@ -108,21 +109,21 @@ def create_end_faces(verts_list, thick, debug):
# thick - if true object is hollow, so construct loop of end faces
# instead of a solid end face
# debug - if true prints values from this function to console
-
+
# returns:
# faces - a list of tuples defining the end faces
-
+
faces = []
-
+
num_of_verts = len(verts_list)
faces_temp = []
sides = 4 # sides - number of sides to mesh *added because of code re-write
-
+
if thick:
- # has thickness, so build end faces
+ # has thickness, so build end faces
num_of_verts = int(num_of_verts / 2)
-
+
# Create a list of the front faces
for index in range(num_of_verts):
if index == (num_of_verts - 1):
@@ -135,13 +136,13 @@ def create_end_faces(verts_list, thick, debug):
faces_temp.append(verts_list[index+1])
faces_temp.append(verts_list[index+num_of_verts+1])
faces_temp.append(verts_list[index+num_of_verts])
-
+
faces.append(tuple(faces_temp))
- faces_temp = []
+ faces_temp = []
else:
#this code may not be needed, depends upon rewrite...
if sides > 4:
- # more than 4 sides, so replace last list item (center vert) with first list item
+ # more than 4 sides, so replace last list item (center vert) with first list item
# for looping and building faces
center_vert = verts_list[num_of_verts - 1]
verts_list[num_of_verts - 1] = verts_list[0]
@@ -152,20 +153,20 @@ def create_end_faces(verts_list, thick, debug):
faces_temp.append(center_vert)
faces.append(tuple(faces_temp))
faces_temp = []
-
+
else:
# create 1 end face
for index in range(num_of_verts):
faces_temp.append(verts_list[index])
- faces.append(tuple(faces_temp))
-
+ faces.append(tuple(faces_temp))
+
# print debug info to console
if debug:
print("\ncreate_end_faces Function Starts")
print("\n End Face Verts list :", verts_list)
print("\n End Faces: ", faces)
print("\ncreate_end_faces Function Ends\n\n")
-
+
return faces
@@ -176,26 +177,26 @@ def create_side_faces(front_verts, back_verts, debug):
# front_verts - a list of front face vertices
# back_verts - a list of back face vertices
# debug - if true prints values from this function to console
-
+
# returns:
# new_faces - a list of tuples defining the faces bridged between front_verts & back_verts
-
+
# Number of faces to create
num_of_faces = (len(front_verts))
new_faces = []
-
+
# add first value to end of lists for looping
front_verts.append(front_verts[0])
back_verts.append(back_verts[0])
-
- # Build the new_faces list with tuples defining each face
+
+ # Build the new_faces list with tuples defining each face
for index in range(num_of_faces):
facestemp = (front_verts[index], front_verts[index+1], back_verts[index+1], back_verts[index])
new_faces.append(facestemp)
-
+
# print debug info to console
if debug:
- print("\ncreate_side_faces Function Starts")
+ print("\ncreate_side_faces Function Starts")
print("\n Number of faces to create: ", num_of_faces)
print("\n New faces :", new_faces)
print("\ncreate_side_faces Function Ends\n\n")
@@ -205,24 +206,24 @@ def create_side_faces(front_verts, back_verts, debug):
def calc_end_verts(size, y_off, thick, debug):
# Calculates vertex location for end of mesh
-
+
# size - tuple of x,y,z dimensions of mesh to create
# y_off - y offset, lets function know where to create verts on y-axis
# thick - thickness, if not zero this is the thickness of a hollow mesh
# with the inner faces inset from size dimensions
# debug - if true prints values from this function to console
-
+
# returns:
# verts - a list of tuples of the x,y,z location of each vertex
-
+
verts = []
-
+
if debug:
print ("\ncalc_end_verts Function Starts\n")
print("\nsize = ",size)
print("y_off = ",y_off)
-
- # Create vertices by calculation
+
+ # Create vertices by calculation
x_pos = 0 + size[0]/2
z_pos = 0 + size[2]/2
verts.append((x_pos, y_off, z_pos))
@@ -230,24 +231,24 @@ def calc_end_verts(size, y_off, thick, debug):
x_pos = 0 - size[0]/2
z_pos = 0 + size[2]/2
verts.append((x_pos, y_off, z_pos))
-
+
x_pos = 0 - size[0]/2
z_pos = 0 - size[2]/2
- verts.append((x_pos, y_off, z_pos))
-
+ verts.append((x_pos, y_off, z_pos))
+
x_pos = 0 + size[0]/2
z_pos = 0 - size[2]/2
- verts.append((x_pos, y_off, z_pos))
-
+ verts.append((x_pos, y_off, z_pos))
+
if thick:
# has thickness, so calculate inside vertices
- #### not too sure about this, but it does work the way the
+ #### not too sure about this, but it does work the way the
#### solidify modifier works, so leaving as is for now
x_pos = size[0] - (thick * 2)
z_pos = size[2] - (thick * 2)
size = (x_pos, y_off, z_pos)
-
- # Create vertices by calculation
+
+ # Create vertices by calculation
x_pos = 0 + size[0]/2
z_pos = 0 + size[2]/2
verts.append((x_pos, y_off, z_pos))
@@ -255,19 +256,19 @@ def calc_end_verts(size, y_off, thick, debug):
x_pos = 0 - size[0]/2
z_pos = 0 + size[2]/2
verts.append((x_pos, y_off, z_pos))
-
+
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list