本文整理汇总了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",
)
示例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)
示例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)
示例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 ------
示例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'}
示例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)
示例7: register
# 需要导入模块: from bpy import props [as 别名]
# 或者: from bpy.props import PointerProperty [as 别名]
def register():
bpy.types.Object.kspbproperties = PointerProperty(type=KSPBProperties)
示例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)
示例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)
示例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"
)
示例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)
示例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)
示例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,
)
示例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,
)
示例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,
)