[Bf-extensions-cvs] [8922bb08] master: Remove outdated addons by Oscurart. unsupported: T63750
meta-androcto
noreply at git.blender.org
Sun Apr 21 05:26:42 CEST 2019
Commit: 8922bb0882d0db4362fbe496efe22431f70a5421
Author: meta-androcto
Date: Sun Apr 21 13:26:25 2019 +1000
Branches: master
https://developer.blender.org/rBAC8922bb0882d0db4362fbe496efe22431f70a5421
Remove outdated addons by Oscurart. unsupported: T63750
===================================================================
D oscurart_futurism.py
D oscurart_mesh_cache_tools.py
D oscurart_mesh_thread.py
D oscurart_worn_edges_map.py
===================================================================
diff --git a/oscurart_futurism.py b/oscurart_futurism.py
deleted file mode 100644
index 7f3f15aa..00000000
--- a/oscurart_futurism.py
+++ /dev/null
@@ -1,149 +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": "Futurism",
- "author": "Oscurart",
- "version": (1, 2),
- "blender": (2, 63, 0),
- "location": "Object > Futurism",
- "description": "Adds a new Mesh Object",
- "warning": "",
- "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
- "Scripts/Object/Oscurart_Futurism",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- "category": "Add Mesh"}
-
-
-import bpy
-
-def object_osc_futurism (self, context,STEP, HOLD):
- ACTOBJ=bpy.context.active_object # OBJETO ACTIVO
- FS=bpy.context.scene.frame_start # FRAME START
- FE=bpy.context.scene.frame_end # FRAME END
- OBJLIST=[] # LISTA PARA OBJETOS ????
- FC=FS # FRAME CURRENT
- OBJNUMBER=1 # SUFIJO DE NUMERO PARA OBJETOS
- STEPINC=0 # NUMERO PARA EVALUAR LOS PASOS
- bpy.context.scene.frame_set(FS) # SETEO EL FRAME CURRENT
- OBACT = bpy.context.active_object # SETEO EL OBJETO ACTIVO
-
- ## CREO EMPTY
- bpy.ops.object.add()
- bpy.context.active_object.name = "FuturismContainer"
- EMPTY = bpy.context.active_object
-
- # SUMO PARAMETERS AL EMPTY
- EMPTY["FUTURISM_HOLDIN"] = 0
- EMPTY["FUTURISM_HOLDOUT"] = 0
-
- bpy.context.view_layer.objects.active = OBACT # RECUPERO OBJETO ACTIVO
-
- for OBJETO in range((FE+1)-FS):
- if STEPINC == STEP:
- # CREO UN MESH A PARTIR DE OBJETO
- MESH=ACTOBJ.to_mesh(bpy.context.scene, True, 'PREVIEW')
- # CREO OBJETO
- OBJECT=bpy.data.objects.new(ACTOBJ.name[:3]+str(FC), MESH)
- # CONECTO A LA ESCENA
- bpy.context.collection.objects.link(OBJECT)
- # SETEO FRAME CURRENT
- bpy.context.scene.frame_set(FC)
- # MARCO EXPRESIONES PARA VIEW
- OBJECT.driver_add("hide")
- OBJECT.animation_data.drivers[0].driver.variables.new()
- OBJECT.animation_data.drivers[0].driver.variables.new()
- OBJECT.animation_data.drivers[0].driver.variables.new()
- OBJECT.animation_data.drivers[0].driver.expression= "False if frame >= %s+var_001 and frame <= %s+var_002 else True" % (str(FC),str(FC+HOLD))
- OBJECT.animation_data.drivers[0].driver.variables[0].targets[0].id_type = 'SCENE'
- OBJECT.animation_data.drivers[0].driver.variables[0].targets[0].id= bpy.context.scene
- OBJECT.animation_data.drivers[0].driver.variables[0].targets[0].data_path = "current_frame"
- OBJECT.animation_data.drivers[0].driver.variables[1].targets[0].id_type = 'OBJECT'
- OBJECT.animation_data.drivers[0].driver.variables[1].targets[0].id= EMPTY
- OBJECT.animation_data.drivers[0].driver.variables[1].targets[0].data_path = '["FUTURISM_HOLDIN"]'
- OBJECT.animation_data.drivers[0].driver.variables[2].targets[0].id_type = 'OBJECT'
- OBJECT.animation_data.drivers[0].driver.variables[2].targets[0].id= EMPTY
- OBJECT.animation_data.drivers[0].driver.variables[2].targets[0].data_path = '["FUTURISM_HOLDOUT"]'
-
- # MARCO EXPRESIONES PARA RENDER
- OBJECT.driver_add("hide_render")
- OBJECT.animation_data.drivers[1].driver.variables.new()
- OBJECT.animation_data.drivers[1].driver.variables.new()
- OBJECT.animation_data.drivers[1].driver.variables.new()
- OBJECT.animation_data.drivers[1].driver.expression= "False if frame >= %s+5 and frame <= %s else True" % (str(FC),str(FC+HOLD))
- OBJECT.animation_data.drivers[1].driver.variables[0].targets[0].id_type = 'SCENE'
- OBJECT.animation_data.drivers[1].driver.variables[0].targets[0].id= bpy.context.scene
- OBJECT.animation_data.drivers[1].driver.variables[0].targets[0].data_path = "current_frame"
- OBJECT.animation_data.drivers[1].driver.variables[1].targets[0].id_type = 'OBJECT'
- OBJECT.animation_data.drivers[1].driver.variables[1].targets[0].id= EMPTY
- OBJECT.animation_data.drivers[1].driver.variables[1].targets[0].data_path = '["FUTURISM_HOLDIN"]'
- OBJECT.animation_data.drivers[1].driver.variables[2].targets[0].id_type = 'OBJECT'
- OBJECT.animation_data.drivers[1].driver.variables[2].targets[0].id= EMPTY
- OBJECT.animation_data.drivers[1].driver.variables[2].targets[0].data_path = '["FUTURISM_HOLDOUT"]'
- # RESETEO STEPINC
- STEPINC=0
- # COPIAMOS S R T
- OBJECT.matrix_world=ACTOBJ.matrix_world
- #EMPARENTO
- OBJECT.parent=EMPTY
- # AVANZO STEP Y FRAME
- FC+=1
- STEPINC+=1
-
-# CLASE PARA OPERADOR
-class Oscurart_futurism (bpy.types.Operator):
- bl_idname = "object.duplicate_futurism"
- bl_label = "Duplicate Futurism"
- bl_description = "Duplicate object per frame"
- bl_options = {'REGISTER', 'UNDO'}
-
- scale: bpy.props.IntProperty(name='Step',default=1, min=1, max=1000)
-
- hold: bpy.props.IntProperty(name='Hold', default=0, min=0)
-
- @classmethod
- def poll(cls, context):
- return(bpy.context.active_object.type == "MESH" )
-
- def execute(self, context):
- object_osc_futurism(self, context, self.scale, self.hold)
-
- return {'FINISHED'}
-
-
-# Registration
-
-def add_osc_futurism_button(self, context):
- self.layout.operator(
- Oscurart_futurism.bl_idname,
- text="Futurism",
- icon="PLUGIN")
-
-
-def register():
- bpy.utils.register_class(Oscurart_futurism)
- bpy.types.VIEW3D_MT_object.append(add_osc_futurism_button)
-
-
-def unregister():
- bpy.utils.unregister_class(Oscurart_futurism)
- bpy.types.VIEW3D_MT_object.remove(add_osc_futurism_button)
-
-
-if __name__ == '__main__':
- register()
diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
deleted file mode 100644
index d03242a4..00000000
--- a/oscurart_mesh_cache_tools.py
+++ /dev/null
@@ -1,477 +0,0 @@
-bl_info = {
- "name": "Mesh Cache Tools",
- "author": "Oscurart",
- "version": (1, 0, 1),
- "blender": (2, 70, 0),
- "location": "Tools > Mesh Cache Tools",
- "description": "Tools for Management Mesh Cache Process",
- "warning": "",
- "wiki_url": "",
- "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
- "category": "Import-Export"}
-
-
-import bpy
-import os
-import struct
-from bpy_extras.io_utils import ImportHelper
-from bpy.types import (
- Operator,
- Panel,
- PropertyGroup,
- AddonPreferences,
- )
-from bpy.props import (
- BoolProperty,
- IntProperty,
- StringProperty,
- PointerProperty,
- CollectionProperty,
- )
-from bpy.app.handlers import persistent
-
-
-class OscurartMeshCacheModifiersSettings(PropertyGroup):
- array: BoolProperty(default=True)
- bevel: BoolProperty(default=True)
- boolean: BoolProperty(default=True)
- build: BoolProperty(default=True)
- decimate: BoolProperty(default=True)
- edge_split: BoolProperty(default=True)
- mask: BoolProperty(default=True)
- mirror: BoolProperty(default=True)
- multires: BoolProperty(default=True)
- remesh: BoolProperty(default=True)
- screw: BoolProperty(default=True)
- skin: BoolProperty(default=True)
- solidify: BoolProperty(default=True)
- subsurf: BoolProperty(default=True)
- triangulate: BoolProperty(default=True)
- wireframe: BoolProperty(default=True)
- cloth: BoolProperty(default=True)
-
-
-# ----------------- AUTO LOAD PROXY
-
-# bpy.context.scene.pc_auto_load_proxy.remove(0)
-class CreaPropiedades(Operator):
- bl_idname = "scene.pc_auto_load_proxy_create"
- bl_label = "Create Auto Load PC Proxy List"
-
- def execute(self, context):
- for gr in bpy.data.collections:
- if gr.library is not None:
- i = bpy.context.scene.pc_auto_load_proxy.add()
- i.name = gr.name
- i.use_auto_load = False
- return {'FINISHED'}
-
-
-class RemuevePropiedades(Operator):
- bl_idname = "scene.pc_auto_load_proxy_remove"
- bl_label = "Remove Auto Load PC Proxy List"
-
- def execute(self, context):
- for i in bpy.context.scene.pc_auto_load_proxy:
- bpy.context.scene.pc_auto_load_proxy.remove(0)
- return {'FINISHED'}
-
-
-class OscurartMeshCacheSceneAutoLoad(PropertyGroup):
- name: StringProperty(
- name="GroupName",
- default=""
- )
- use_auto_load: BoolProperty(
- name="Bool",
- default=False
- )
-
-
- at persistent
-def CargaAutoLoadPC(dummy):
- for gr in bpy.context.scene.pc_auto_load_proxy:
- if gr.use_auto_load:
- for ob in bpy.data.collections[gr.name].objects:
- for MOD in ob.modifiers:
- if MOD.type == "MESH_CACHE":
- MOD.cache_format = "PC2"
- MOD.forward_axis = "POS_Y"
- MOD.up_axis = "POS_Z"
- MOD.flip_axis = set(())
- MOD.frame_start = bpy.context.scene.pc_pc2_start
- abspath = os.path.abspath(bpy.path.abspath("//" +
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-extensions-cvs
mailing list