コード例 #1
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""Operators for adding rigs."""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("addrig.operators")
_LOG.trace("initializing add rig module")

from .addstandardrig import MPFB_OT_AddStandardRigOperator
from .addrigifyrig import MPFB_OT_AddRigifyRigOperator
from .generaterigifyrig import MPFB_OT_GenerateRigifyRigOperator

__all__ = [
    "MPFB_OT_AddStandardRigOperator", "MPFB_OT_AddRigifyRigOperator",
    "MPFB_OT_GenerateRigifyRigOperator"
]
コード例 #2
0
"""This module provides a class for managing blender classes"""

from bpy.utils import register_class, unregister_class

from mpfb.services import LogService
LOG = LogService.get_logger("mpfb.classmanager")


class ClassManager:
    """This class keeps track of blender classes and ensures that they
    get properly registered and unregistered"""

    __stack = None  # use a class attribute as classes stack
    __isinitialized = False

    def __init__(self):
        if not type(
                self
        ).__isinitialized:  # Ensure ClassManager is only registered once
            LOG.debug("initializing classmanager")
            type(self).__stack = []
            type(self).__isinitialized = True
        else:
            raise RuntimeError("ClassManager must be a singleton")

    def getClassStack(self):
        return type(self).__stack

    @classmethod
    def isinitialized(self):
        return self.__isinitialized
コード例 #3
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""Operators for MakeSkin."""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("makeskin.operators")
_LOG.trace("initializing makeskin operators module")

from .creatematerial import MPFB_OT_CreateMaterialOperator
from .importmaterial import MPFB_OT_ImportMaterialOperator
from .writematerial import MPFB_OT_WriteMaterialOperator

__all__ = [
    "MPFB_OT_CreateMaterialOperator", "MPFB_OT_ImportMaterialOperator",
    "MPFB_OT_WriteMaterialOperator"
]
コード例 #4
0
from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("importerpresets.init")
_LOG.trace("initializing importerpresets module")

from .importerpresetspanel import MPFB_PT_Importer_Presets_Panel
from .operators import *

__all__ = [
    "MPFB_PT_Importer_Presets_Panel", "MPFB_OT_LoadImporterPresetsOperator",
    "MPFB_OT_OverwriteImporterPresetsOperator",
    "MPFB_OT_SaveNewImporterPresetsOperator"
]
コード例 #5
0
"""This module provides functionality for modeling humans."""

import os, bpy

from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("model.init")
_LOG.trace("initializing the model module")

from .modelpanel import MPFB_PT_Model_Panel

__all__ = ["MPFB_PT_Model_Panel"]
コード例 #6
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""This module contains functionality for various developer stuff."""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("developer.init")
_LOG.trace("initializing developer module")

from .developerpanel import MPFB_PT_Developer_Panel
from .operators import *

__all__ = [
    "MPFB_OT_List_Log_Levels_Operator",
    "MPFB_OT_Reset_Log_Levels_Operator",
    "MPFB_OT_Set_Log_Level_Operator"
    ]
コード例 #7
0
"""This module contains functionality for loading clothes."""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("loadclothes.init")
_LOG.trace("initializing load clothes module")

from .webresourcespanel import MPFB_PT_Web_Resources_Panel
from .operators import *

__all__ = ["MPFB_OT_Web_Resource_Operator"]
コード例 #8
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("ui.humanpresets")
_LOG.trace("initializing save nodes module")

from .humanpresetspanel import MPFB_PT_Human_Presets_Panel
from .operators import *

__all__ = [
    "MPFB_PT_Human_Presets_Panel"
    ]
コード例 #9
0
"""This module provides functionality for creating new humans."""

import os, bpy

from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("newhuman.init")
_LOG.trace("initializing new human module")

from .frompresetspanel import MPFB_PT_From_Presets_Panel
from .newhumanpanel import MPFB_PT_NewHuman_Panel
from .operators import *

__all__ = ["MPFB_PT_NewHuman_Panel", "MPFB_PT_From_Presets_Panel"]
コード例 #10
0
"""Operators for MakeClothes."""

from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("makeclothes.operators")
_LOG.trace("initializing makeclothes operators module")

from .extractclothes import MPFB_OT_ExtractClothesOperator
from .markclothes import MPFB_OT_MarkClothesOperator
from .writeclothes import MPFB_OT_WriteClothesOperator

__all__ = [
    "MPFB_OT_ExtractClothesOperator", "MPFB_OT_MarkClothesOperator",
    "MPFB_OT_WriteClothesOperator"
]
コード例 #11
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""This module provides functionality for creating makehuman targets."""

import os, bpy

from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("maketarget.init")
_LOG.trace("initializing maketarget module")

_ROOT = os.path.dirname(__file__)
_MAKETARGET_OBJECT_PROPERTIES_DIR = os.path.join(_ROOT, "objectproperties")
_MAKETARGET_OBJECT_PROPERTIES = BlenderConfigSet.get_definitions_in_json_directory(_MAKETARGET_OBJECT_PROPERTIES_DIR)

MakeTargetObjectProperties = BlenderConfigSet(_MAKETARGET_OBJECT_PROPERTIES, bpy.types.Object, prefix="MT_") # pylint: disable=C0103

from .maketargetpanel import MPFB_PT_MakeTarget_Panel
from .operators import *

__all__ = [
    "MPFB_PT_MakeTarget_Panel",
    "MakeTargetObjectProperties"
    ]
コード例 #12
0
"""This module provides functionality adding rigs."""

import os, bpy
from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("addrig.init")
_LOG.trace("initializing the addrig module")

from .addrigpanel import MPFB_PT_Add_Rig_Panel
from .operators import *

__all__ = ["MPFB_PT_Add_Rig_Panel"]
コード例 #13
0
"""This module provides functionality for creating makehuman materials."""

import os, bpy

from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("makeskin.init")
_LOG.trace("initializing makeskin module")

_ROOT = os.path.dirname(__file__)
_MAKESKIN_OBJECT_PROPERTIES_DIR = os.path.join(_ROOT, "objectproperties")
_MAKESKIN_OBJECT_PROPERTIES = BlenderConfigSet.get_definitions_in_json_directory(
    _MAKESKIN_OBJECT_PROPERTIES_DIR)

MakeSkinObjectProperties = BlenderConfigSet(_MAKESKIN_OBJECT_PROPERTIES,
                                            bpy.types.Object,
                                            prefix="MS_")  # pylint: disable=C0103

from .makeskinpanel import MPFB_PT_MakeSkin_Panel
from .operators import *

__all__ = ["MPFB_PT_MakeSkin_Panel"]
コード例 #14
0
"""This module contains functionality for loading assets from the library."""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("assetlibrary.init")
_LOG.trace("initializing asset library module")

from .operators import *
from .assetsettingspanel import *
from .assetlibrarypanel import *

__all__ = [
    ]
コード例 #15
0
from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("importer.init")
_LOG.trace("initializing importer module")

from .importerpanel import MPFB_PT_Importer_Panel
from .operators import *

__all__ = ["MPFB_OT_ImportHumanOperator"]
コード例 #16
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""Operators for MakeTarget."""

from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("maketarget.operators")
_LOG.trace("initializing maketarget operators module")

from .createtarget import MPFB_OT_CreateTargetOperator
from .importtarget import MPFB_OT_ImportTargetOperator
from .writetarget import MPFB_OT_WriteTargetOperator
from .printtarget import MPFB_OT_PrintTargetOperator
from .symmetrizeleft import MPFB_OT_SymmetrizeLeftOperator
from .symmetrizeright import MPFB_OT_SymmetrizeRightOperator

__all__ = [
    "MPFB_OT_CreateTargetOperator", "MPFB_OT_ImportTargetOperator",
    "MPFB_OT_WriteTargetOperator", "MPFB_OT_PrintTargetOperator",
    "MPFB_OT_SymmetrizeLeftOperator", "MPFB_OT_SymmetrizeRightOperator"
]
コード例 #17
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
"""This module provides UI for saving/loading eye material settings"""

from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("savenodes.init")
_LOG.trace("initializing save nodes module")

from .eyesettingspanel import MPFB_PT_Eye_Settings_Panel
from .operators import *

__all__ = ["MPFB_PT_Eye_Settings_Panel"]
コード例 #18
0
"""This module provides functionality for creating makehuman clothes."""

import os, bpy

from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("makeclothes.init")
_LOG.trace("initializing makeclothes module")

_ROOT = os.path.dirname(__file__)
_MAKECLOTHES_OBJECT_PROPERTIES_DIR = os.path.join(_ROOT, "objectproperties")
_MAKECLOTHES_OBJECT_PROPERTIES = BlenderConfigSet.get_definitions_in_json_directory(
    _MAKECLOTHES_OBJECT_PROPERTIES_DIR)

MakeClothesObjectProperties = BlenderConfigSet(_MAKECLOTHES_OBJECT_PROPERTIES,
                                               bpy.types.Object,
                                               prefix="MC_")  # pylint: disable=C0103

from .makeclothespanel import MPFB_PT_MakeClothes_Panel
from .operators import *

__all__ = ["MPFB_PT_MakeClothes_Panel"]
コード例 #19
0
from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("ui.enhancedsettings")
_LOG.trace("initializing enhanced settings module")

from .enhancedsettingspanel import MPFB_PT_Enhanced_Settings_Panel
from .operators import *

__all__ = ["MPFB_PT_Enhanced_Settings_Panel"]
コード例 #20
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
from mpfb.services import LogService as _LogService
_LOG = _LogService.get_logger("rigify.init")
_LOG.trace("initializing rigify module")

from .rigifypanel import MPFB_PT_Rigify_Panel
from .operators import *

__all__ = ["MPFB_OT_Convert_To_Rigify_Operator"]
コード例 #21
0
ファイル: __init__.py プロジェクト: makehumancommunity/mpfb2
from mpfb.services import LogService as _LogService
from mpfb.services.blenderconfigset import BlenderConfigSet

_LOG = _LogService.get_logger("righelpers.init")
_LOG.trace("initializing setup rig helpers module")

import os, bpy

_ROOT = os.path.dirname(__file__)
_RIG_PROPERTIES_DIR = os.path.join(_ROOT, "rigproperties")
_RIG_PROPERTIES = BlenderConfigSet.get_definitions_in_json_directory(_RIG_PROPERTIES_DIR)

RigHelpersProperties = BlenderConfigSet(_RIG_PROPERTIES, bpy.types.Object, prefix="rh_") # pylint: disable=C0103

from .righelperspanel import MPFB_PT_RigHelpersPanel
from .operators import *

__all__ = [
    "MPFB_PT_RigHelpersPanel",
    "RigHelpersProperties"
    ]
コード例 #22
0
"""Operators for new human."""

from mpfb.services import LogService as _LogService

_LOG = _LogService.get_logger("newhuman.operators")
_LOG.trace("initializing new human operators module")

from .createhuman import MPFB_OT_CreateHumanOperator
from .humanfrompresets import MPFB_OT_HumanFromPresetsOperator

__all__ = ["MPFB_OT_CreateHumanOperator", "MPFB_OT_HumanFromPresetsOperator"]