當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。