[Bf-extensions-cvs] [48054575] master: cmu_mocap_browser: removed: unsupported: T63750

meta-androcto noreply at git.blender.org
Sat Sep 14 01:21:24 CEST 2019


Commit: 48054575146a2f8dae2bf5d6868d90dd7cd178fd
Author: meta-androcto
Date:   Sat Sep 14 09:20:58 2019 +1000
Branches: master
https://developer.blender.org/rBAC48054575146a2f8dae2bf5d6868d90dd7cd178fd

cmu_mocap_browser: removed: unsupported: T63750

===================================================================

D	cmu_mocap_browser/__init__.py
D	cmu_mocap_browser/data.py
D	cmu_mocap_browser/download.py
D	cmu_mocap_browser/library.py
D	cmu_mocap_browser/makehuman.py

===================================================================

diff --git a/cmu_mocap_browser/__init__.py b/cmu_mocap_browser/__init__.py
deleted file mode 100644
index 66dfc2df..00000000
--- a/cmu_mocap_browser/__init__.py
+++ /dev/null
@@ -1,172 +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 3
-#  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 #####
-
-# <pep8-80 compliant>
-
-# This script was developed with financial support from the Foundation for
-# Science and Technology of Portugal, under the grant SFRH/BD/66452/2009.
-
-
-bl_info = {
-    "name": "Carnegie Mellon University Mocap Library Browser",
-    "author": "Daniel Monteiro Basso <daniel at basso.inf.br>",
-    "version": (2015, 3, 20),
-    "blender": (2, 66, 6),
-    "location": "View3D > Tools",
-    "description": "Assistant for using CMU Motion Capture data",
-    "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
-        "Scripts/3D_interaction/CMU_Mocap_Library_Browser",
-    "tracker_url": "https://developer.blender.org/maniphest/task/edit/form/2/",
-    "category": "Animation"}
-
-
-if 'bpy' in locals():
-    import importlib
-    library = importlib.reload(library)
-    download = importlib.reload(download)
-    makehuman = importlib.reload(makehuman)
-    data = importlib.reload(data)
-else:
-    from . import library
-    from . import download
-    from . import makehuman
-    from . import data
-
-import os
-import bpy
-
-
-class CMUMocapSubjectBrowser(bpy.types.Panel):
-    bl_idname = "object.cmu_mocap_subject_browser"
-    bl_label = "CMU Mocap Subject Browser"
-    bl_space_type = 'VIEW_3D'
-    bl_region_type = 'TOOLS'
-    bl_category = 'Animation'
-    bl_options = {'DEFAULT_CLOSED'}
-
-    def draw(self, context):
-        data.initialize_subjects(context)
-        layout = self.layout
-        cml = context.preferences.addons['cmu_mocap_browser'].preferences
-        layout.template_list("UI_UL_list", "SB", cml, "subject_list",
-            cml, "subject_active")
-        layout.prop(cml, "subject_import_name")
-        if cml.subject_active != -1:
-            sidx = cml.subject_list[cml.subject_active].idx
-            remote_fname = library.skeleton_url.format(sidx)
-            tid = "{0:02d}".format(sidx)
-            local_path = os.path.expanduser(cml.local_storage)
-            if cml.follow_structure:
-                local_path = os.path.join(local_path, tid)
-            local_fname = os.path.join(local_path, tid + ".asf")
-            do_import = False
-            if os.path.exists(local_fname):
-                label = "Import Selected"
-                do_import = True
-            elif cml.automatically_import:
-                label = "Download and Import Selected"
-            else:
-                label = "Download Selected"
-
-            props = layout.operator("mocap.download_import",
-                                    text=label, icon='ARMATURE_DATA')
-            props.remote_file = remote_fname
-            props.local_file = local_fname
-            props.do_import = do_import
-
-
-class CMUMocapMotionBrowser(bpy.types.Panel):
-    bl_idname = "object.cmu_mocap_motion_browser"
-    bl_label = "CMU Mocap Motion Browser"
-    bl_space_type = 'VIEW_3D'
-    bl_region_type = 'TOOLS'
-    bl_category = 'Animation'
-    bl_options = {'DEFAULT_CLOSED'}
-
-    def draw(self, context):
-        layout = self.layout
-        cml = context.preferences.addons['cmu_mocap_browser'].preferences
-        layout.template_list("UI_UL_list", "MB", cml, "motion_list",
-            cml, "motion_active")
-        if cml.motion_active == -1:
-            return
-        sidx = cml.subject_list[cml.subject_active].idx
-        midx = cml.motion_list[cml.motion_active].idx
-        motion = library.subjects[sidx]['motions'][midx]
-        fps = motion['fps']
-        ifps = fps // cml.frame_skip
-        row = layout.row()
-        row.column().label(text="Original: {0:d} fps.".format(fps))
-        row.column().label(text="Importing: {0:d} fps.".format(ifps))
-        layout.prop(cml, "frame_skip")
-        layout.prop(cml, "cloud_scale")
-        remote_fname = library.motion_url.format(sidx, midx)
-        tid = "{0:02d}".format(sidx)
-        local_path = os.path.expanduser(cml.local_storage)
-        if cml.follow_structure:
-            local_path = os.path.join(local_path, tid)
-        for target, icon, ext in (
-                ('Motion Data', 'POSE_DATA', 'amc'),
-                ('Marker Cloud', 'EMPTY_DATA', 'c3d'),
-                ('Movie', 'FILE_MOVIE', 'mpg')):
-            action = "Import" if ext != 'mpg' else "Open"
-            fname = "{0:02d}_{1:02d}.{2}".format(sidx, midx, ext)
-            local_fname = os.path.join(local_path, fname)
-            do_import = False
-            if os.path.exists(local_fname):
-                label = "{0} {1}".format(action, target)
-                do_import = True
-            elif cml.automatically_import:
-                label = "Download and {0} {1}".format(action, target)
-            else:
-                label = "Download {0}".format(target)
-            row = layout.row()
-            props = row.operator("mocap.download_import", text=label, icon=icon)
-            props.remote_file = remote_fname + ext
-            props.local_file = local_fname
-            props.do_import = do_import
-            row.active = ext in motion['files']
-
-
-class CMUMocapToMakeHuman(bpy.types.Panel):
-    bl_idname = "object.cmu_mocap_makehuman"
-    bl_label = "CMU Mocap to MakeHuman"
-    bl_space_type = 'VIEW_3D'
-    bl_region_type = 'TOOLS'
-    bl_category = 'Animation'
-    bl_options = {'DEFAULT_CLOSED'}
-
-    def draw(self, context):
-        layout = self.layout
-        cml = context.preferences.addons['cmu_mocap_browser'].preferences
-        layout.prop_search(cml, "floor", context.scene, "objects")
-        layout.prop(cml, "feet_angle")
-        layout.operator("object.cmu_align", text='Align armatures')
-        layout.operator("object.cmu_transfer", text='Transfer animation')
-
-
-def register():
-    bpy.utils.register_module(__name__)
-
-
-def unregister():
-    bpy.utils.unregister_module(__name__)
-
-
-if __name__ == "__main__":
-    register()
diff --git a/cmu_mocap_browser/data.py b/cmu_mocap_browser/data.py
deleted file mode 100644
index 2f4384e2..00000000
--- a/cmu_mocap_browser/data.py
+++ /dev/null
@@ -1,125 +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 3
-#  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 #####
-
-import bpy
-from . import library
-
-
-def initialize_subjects(context):
-    """
-        Initializes the main object and the subject (actor) list
-    """
-    cml = context.preferences.addons['cmu_mocap_browser'].preferences
-    if hasattr(cml, 'initialized'):
-        return
-    cml.initialized = True
-    while cml.subject_list:
-        cml.subject_list.remove(0)
-    for k, v in library.subjects.items():
-        n = cml.subject_list.add()
-        n.name = "{:d} - {}".format(k, v['desc'])
-        n.idx = k
-
-
-def update_motions(obj, context):
-    """
-        Updates the motion list after a subject is selected
-    """
-    sidx = -1
-    if obj.subject_active != -1:
-        sidx = obj.subject_list[obj.subject_active].idx
-    while obj.motion_list:
-        obj.motion_list.remove(0)
-    if sidx != -1:
-        for k, v in library.subjects[sidx]["motions"].items():
-            n = obj.motion_list.add()
-            n.name = "{:d} - {}".format(k, v["desc"])
-            n.idx = k
-        obj.motion_active = -1
-
-
-class ListItem(bpy.types.PropertyGroup):
-    name: bpy.props.StringProperty()
-    idx: bpy.props.IntProperty()
-
-
-class CMUMocapLib(bpy.types.AddonPreferences):
-    bl_idname = 'cmu_mocap_browser'
-
-    local_storage: bpy.props.StringProperty(
-        name="Local Storage",
-        subtype='DIR_PATH',
-        description="Location to store downloaded resources",
-        default="~/cmu_mocap_lib"
-        )
-    follow_structure: bpy.props.BoolProperty(
-        name="Follow Library Folder Structure",
-        description="Store resources in subfolders of the local storage",
-        default=True
-        )
-    automatically_import: bpy.props.BoolProperty(
-        name="Automatically Import after Download",
-        description="Import the resource after the download is finished",
-        default=True
-        )
-    subject_list: bpy.props.CollectionProperty(
-        name="subjects", type=ListItem
-        )
-    subject_active: bpy.props.IntProperty(
-        name="subject_idx", default=-1, update=update_motions
-        )
-    subject_import_name: bpy.props.StringProperty(
-        name="Armature Name",
-        description="Identifier of the imported subject's armature",
-        default="Skeleton"
-        )
-    motion_list: bpy.props.CollectionProperty(
-        name="m

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-extensions-cvs mailing list