当前位置: 首页>>代码示例>>Python>>正文


Python props.PointerProperty方法代码示例

本文整理汇总了Python中bpy.props.PointerProperty方法的典型用法代码示例。如果您正苦于以下问题:Python props.PointerProperty方法的具体用法?Python props.PointerProperty怎么用?Python props.PointerProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在bpy.props的用法示例。


在下文中一共展示了props.PointerProperty方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    if bl_info["blender"] > bpy.app.version:
        addon_name = bl_info["name"].upper()
        addon_ver = ".".join(str(x) for x in bl_info["version"])
        blender_ver = ".".join(str(x) for x in bl_info["blender"][:2])
        requirements_check = RuntimeError(
            f"\n!!! BLENDER {blender_ver} IS REQUIRED FOR {addon_name} {addon_ver} !!!"
            "\n!!! READ INSTALLATION GUIDE !!!"
        )
        raise requirements_check

    for cls in classes:
        bpy.utils.register_class(cls)

    bpy.types.Scene.commotion = PointerProperty(type=preferences.SceneProperties)
    bpy.types.WindowManager.commotion = PointerProperty(type=preferences.WmProperties)

    mod_update.init(
        addon_version=bl_info["version"],
        releases_url="https://api.github.com/repos/mrachinskiy/commotion/releases",
    ) 
开发者ID:mrachinskiy,项目名称:commotion,代码行数:23,代码来源:__init__.py

示例2: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    for cls in classes:
        make_annotations(cls)
        bpy.utils.register_class(cls)
    bpy.types.TextCurve.text_counter_props = PointerProperty(type = TextCounter_Props)
    bpy.app.handlers.frame_change_post.append(textcounter_text_update_frame) 
开发者ID:leomoon-studios,项目名称:leomoon-textcounter,代码行数:8,代码来源:leomoon-textcounter.py

示例3: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    bpy.utils.register_class(CreateWritingAnimPanel)
    bpy.utils.register_class(CreateWritingAnimOp)
    bpy.utils.register_class(SeparateSplinesObjsOp)
    bpy.utils.register_class(CreateWritingAnimParams)
    bpy.types.WindowManager.createWritingAnimParams = \
        bpy.props.PointerProperty(type=CreateWritingAnimParams) 
开发者ID:Shriinivas,项目名称:writinganimation,代码行数:9,代码来源:writinganim_2_8.py

示例4: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    for c in class_list:
        bpy.utils.register_class(c)

    bpy.types.Scene.pt_custom_props = PointerProperty(type = pt_p_group0)

    wm = bpy.context.window_manager
    km = wm.keyconfigs.addon.keymaps.new(name='3D View', space_type='VIEW_3D')
    kmi = km.keymap_items.new('pt.op0_id', 'D', 'PRESS')

# ------ unregister ------ 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:13,代码来源:mesh_pen_tool.py

示例5: execute

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def execute(self, context):
        bpy.types.Scene.stored_views = PointerProperty(type=properties.StoredViewsData)
        scenes = bpy.data.scenes
        for scene in scenes:
            core.DataStore.sanitize_data(scene)
        return {'FINISHED'} 
开发者ID:Microvellum,项目名称:Fluid-Designer,代码行数:8,代码来源:__init__.py

示例6: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    for aclass in classes:
        register_class(aclass)
    Scene.global_properties = PointerProperty(type=GlobalProperties)
    Scene.preferences_properties = PointerProperty(type=PreferencesProperties)
    Scene.recommendations_properties = PointerProperty(type=RecommendationsProperties)
    Scene.search_properties = PointerProperty(type=SearchProperties) 
开发者ID:vladvrabie,项目名称:material_recommender,代码行数:9,代码来源:__init__.py

示例7: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    bpy.types.Object.kspbproperties = PointerProperty(type=KSPBProperties) 
开发者ID:Dasoccerguy,项目名称:io_kspblender,代码行数:4,代码来源:properties.py

示例8: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():																								# Register function to add the script
	bpy.utils.register_class(UE4_PivotPainterPanel)
	bpy.utils.register_class(UE4_CreateTexturesOperator)
	bpy.utils.register_class(UE4_PivotPainterProperties)
	bpy.utils.register_class(ShowHideExtraOptions)
	bpy.utils.register_class(ShowHideExperimentalOptions)
	bpy.utils.register_class(CreateSelectOrederOperator)
	bpy.utils.register_class(CreateCustomLevelOperator)
	bpy.types.Scene.pivot_painter = PointerProperty(type = UE4_PivotPainterProperties) 
开发者ID:Gvgeo,项目名称:Pivot-Painter-for-Blender,代码行数:11,代码来源:PivotPainterTool.py

示例9: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
	from bpy.utils import register_class
	for cls in classes:
		register_class(cls)
	bpy.types.Scene.pivot_painter = PointerProperty(type = UE4_PivotPainterProperties) 
开发者ID:Gvgeo,项目名称:Pivot-Painter-for-Blender,代码行数:7,代码来源:PivotPainterTool280.py

示例10: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    bpy.utils.register_module(__name__)
    bpy.types.Scene.paintClonesTools = PointerProperty(
        name="Paint Clones Variables",
        type=PaintClonesProperties,
        description="Paint Clones Properties"
    ) 
开发者ID:mifth,项目名称:mifthtools,代码行数:9,代码来源:tools_painclones.py

示例11: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register(cls):
        bpy.types.Object.point_cloud_visualizer = PointerProperty(type=cls) 
开发者ID:tibicen,项目名称:meshroom2blender,代码行数:4,代码来源:view3d_point_cloud_visualizer.py

示例12: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
    from bpy.utils import register_class
    for cls in classes:
        register_class(cls)
    bpy.types.Scene.settings = PointerProperty(type=Settings)
    remove_handler()
    bpy.app.handlers.frame_change_pre.append(MaskLayerActivater) 
开发者ID:lukas-blecher,项目名称:AutoMask,代码行数:9,代码来源:automask.py

示例13: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register(cls):
        bpy.types.Scene.luxcore = PointerProperty(
            name="LuxCore Scene Settings",
            description="LuxCore scene settings",
            type=cls,
        ) 
开发者ID:LuxCoreRender,项目名称:BlendLuxCore,代码行数:8,代码来源:scene.py

示例14: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register(cls):
        bpy.types.Camera.luxcore = PointerProperty(
            name="LuxCore Camera Settings",
            description="LuxCore camera settings",
            type=cls,
        ) 
开发者ID:LuxCoreRender,项目名称:BlendLuxCore,代码行数:8,代码来源:camera.py

示例15: register

# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register(cls):        
        bpy.types.Material.luxcore = PointerProperty(
            name="LuxCore Material Settings",
            description="LuxCore material settings",
            type=cls,
        ) 
开发者ID:LuxCoreRender,项目名称:BlendLuxCore,代码行数:8,代码来源:material.py


注:本文中的bpy.props.PointerProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。