< bpy.props.PointerProperty python examples

bpy.props.PointerProperty - python examples

Here are the examples of the python api bpy.props.PointerProperty taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

64 Examples 7

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    # Register properties.
    bpy.utils.register_class(RenderCopySettingsScene)
    bpy.utils.register_class(RenderCopySettingsSetting)
    bpy.utils.register_class(RenderCopySettings)
    bpy.types.Scene.render_copy_settings = PointerProperty(type=RenderCopySettings)

    bpy.utils.register_module(__name__)
    bpy.app.translations.register(__name__, translations.translations_dict)

3 View Complete Implementation : mesh_pen_tool.py , under GNU General Public License v3.0 , by Microvellum
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')

3 View Complete Implementation : light.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):        
        bpy.types.Light.luxcore = PointerProperty(
            name="LuxCore Light Settings",
            description="LuxCore light settings",
            type=cls,
        )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    bpy.utils.register_class(ReloadEDL)
    bpy.utils.register_class(FindReelsEDL)
    bpy.utils.register_class(ImportEDL)
    bpy.utils.register_class(SEQUENCER_PT_import_edl)

    # edl_import_info
    bpy.utils.register_class(EDLReelInfo)
    bpy.utils.register_class(EDLImportInfo)
    bpy.types.Scene.edl_import_info = PointerProperty(type=EDLImportInfo)

3 View Complete Implementation : blendshell-02.py , under MIT License , by oormicreations
def register():
    bl_info['blender'] = getattr(bpy.app, "version")
    from bpy.utils import register_class
    for cls in classes:
        register_class(cls)

    bpy.types.Scene.bs_tool = PointerProperty(type=CCProperties)

3 View Complete Implementation : camera.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):
        bpy.types.Camera.luxcore = PointerProperty(
            name="LuxCore Camera Settings",
            description="LuxCore camera settings",
            type=cls,
        )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def get_addon_preferences(name=''):
    """Acquisition and registration"""
    addons = bpy.context.user_preferences.addons
    if __name__ not in addons:  # wm.read_factory_settings()
        return None
    addon_prefs = addons[__name__].preferences
    if name:
        if not hasattr(addon_prefs, name):
            for mod in sub_modules:
                if mod.__name__.split('.')[-1] == name:
                    cls = _get_pref_class(mod)
                    if cls:
                        prop = PointerProperty(type=cls)
                        setattr(PieToolsPreferences, name, prop)
                        bpy.utils.unregister_class(PieToolsPreferences)
                        bpy.utils.register_class(PieToolsPreferences)
        return getattr(addon_prefs, name, None)
    else:
        return addon_prefs

3 View Complete Implementation : cm_pathChannels.py , under GNU General Public License v3.0 , by johnroper100
def register():
    bpy.utils.register_class(draw_path_directions_operator)
    bpy.utils.register_class(path_entry)
    bpy.utils.register_class(paths_collection)
    bpy.utils.register_class(SCENE_OT_cm_path_populate)
    bpy.utils.register_class(SCENE_OT_cm_path_remove)
    bpy.utils.register_class(SCENE_UL_cm_path)
    bpy.utils.register_class(SCENE_PT_path)
    bpy.utils.register_class(Switch_Selected_Path)
    bpy.utils.register_class(Switch_Connected_Path)
    bpy.utils.register_class(cm_path_bfs)
    bpy.utils.register_class(cm_path_dfs)
    bpy.types.Scene.cm_paths = PointerProperty(type=paths_collection)

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
    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'}

3 View Complete Implementation : scene.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):
        bpy.types.Scene.luxcore = PointerProperty(
            name="LuxCore Scene Settings",
            description="LuxCore scene settings",
            type=cls,
        )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    for cls in classes:
        bpy.utils.register_class(cls)

    bpy.types.WindowManager.sketchfab = PointerProperty(
            type=SketchfabProps)

    load_token()
    bpy.app.handlers.load_post.append(load_token)
    update_panel(None, bpy.context)

3 View Complete Implementation : Blender_Screenwriter_original.py , under MIT License , by tin2tin
def register():
    bpy.utils.register_class(SCREENWRITER_PT_panel)
    bpy.utils.register_class(SCREENWRITER_OT_preview_fountain)
    bpy.utils.register_class(TEXT_OT_dual_view)
    bpy.utils.register_class(SCREENWRITER_OT_export)
    bpy.types.TEXT_MT_text.append(screenwriter_menu_export)
    bpy.utils.register_class(TEXT_OT_scenes_to_strips)

    bpy.types.Scene.last_character = IntProperty(default=0)
    bpy.types.Scene.last_line = StringProperty(default="")
    bpy.types.Scene.last_line_index = IntProperty(default=0)

    bpy.utils.register_class(TextReplaceProperties)
    bpy.types.Scene.text_replace = PointerProperty(type=TextReplaceProperties)

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by fblah
def register():
    try: bpy.utils.register_module(__name__)
    except: traceback.print_exc()    
    
    # Custom scene properties
    bpy.types.Scene.customshapekeylist = CollectionProperty(type=ShapeKeyItem)
    bpy.types.Scene.customshapekeylist_index = IntProperty()

    bpy.types.Scene.srcMeshShapeKey = bpy.props.StringProperty()
    bpy.types.Scene.destMeshShapeKey = bpy.props.StringProperty()
    bpy.types.Scene.shapekeytransferSettings = PointerProperty(type=UISettings)

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def get_addon_preferences(name=''):
    """Acquisition and registration"""
    addons = bpy.context.user_preferences.addons
    if __name__ not in addons:  # wm.read_factory_settings()
        return None
    addon_prefs = addons[__name__].preferences
    if name:
        if not hasattr(addon_prefs, name):
            for mod in sub_modules:
                if mod.__name__.split('.')[-1] == name:
                    cls = _get_pref_class(mod)
                    if cls:
                        prop = PointerProperty(type=cls)
                        setattr(UIToolsPreferences, name, prop)
                        bpy.utils.unregister_class(UIToolsPreferences)
                        bpy.utils.register_class(UIToolsPreferences)
        return getattr(addon_prefs, name, None)
    else:
        return addon_prefs

3 View Complete Implementation : jv_properties.py , under GNU General Public License v3.0 , by BlendingJake
def register():
    from bpy.utils import register_class
    from bpy.types import Object

    register_class(BisectingPlane)
    register_class(Cutout)
    register_class(FaceGroup)
    register_class(JVProperties)
    Object.jv_properties = PointerProperty(
        type=JVProperties,
        name="jv_properties",
        description="All possible properties for any JARCH Vis object"
    )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    draw.callback_enable()

    import console_python
    console_python.execute.hooks.append((console_hook, ()))
    bpy.utils.register_module(__name__)
    bpy.types.WindowManager.MathVisProp = PointerProperty(type=MathVis)
    bpy.types.WindowManager.MathVisStatePropList = CollectionProperty( type=MathVisStateProp)
    bpy.types.CONSOLE_MT_console.prepend(menu_func_cleanup)

3 View Complete Implementation : hair.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):        
        bpy.types.ParticleSettings.luxcore = PointerProperty(
            name="LuxCore Particle Settings",
            description="LuxCore particle settings",
            type=cls,
        )

3 View Complete Implementation : ui_layer_manager.py , under GNU General Public License v3.0 , by Microvellum
def register():
    bpy.utils.register_module(__name__)
    bpy.types.Scene.layergroups = CollectionProperty(type=LayerGroup)
    # Unused, but this is needed for the TemplateList to work...
    bpy.types.Scene.layergroups_index = IntProperty(default=-1)
    bpy.types.Scene.namedlayers = PointerProperty(type=NamedLayers)
    bpy.app.handlers.scene_update_post.append(check_init_data)
    update_panel(None, bpy.context)

3 View Complete Implementation : blender_object.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):
        bpy.types.Object.luxcore = PointerProperty(
            name="LuxCore Object Settings",
            description="LuxCore object settings",
            type=cls,
        )

3 View Complete Implementation : render_to_print.py , under GNU General Public License v3.0 , by Microvellum
def register():
    bpy.utils.register_class(RENDER_OT_apply_size)
    bpy.utils.register_class(RENDER_PT_print)
    bpy.utils.register_class(RenderPrintSertings)

    Scene.print_settings = PointerProperty(type=RenderPrintSertings)

3 View Complete Implementation : material.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):        
        bpy.types.Material.luxcore = PointerProperty(
            name="LuxCore Material Settings",
            description="LuxCore material settings",
            type=cls,
        )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by njanakiev
def register():
    bpy.utils.register_class(ConfigurationPropertyGroup)
    bpy.types.Scene.cookie_factory = PointerProperty(type=ConfigurationPropertyGroup)

    bpy.utils.register_class(CookieFactoryPanel)
    logger.debug('panel registered')

3 View Complete Implementation : cubester.py , under GNU General Public License v3.0 , by BlendingJake
def register():
    for cls in classes:
        register_class(cls)

    Scene.cs_properties = PointerProperty(
        name="cs_properties",
        type=CSSceneProperties,
        description="All the scene properties needed for the add-on CubeSter"
    )

    Object.cs_properties = PointerProperty(
        name="cs_properties",
        type=CSObjectProperties,
        description="All the object properties needed for the add-on CubeSter"
    )

    app.handlers.frame_change_pre.append(frame_handler)

3 View Complete Implementation : generic.py , under MIT License , by ranjian0
def register_generic():
    for cls in classes:
        bpy.utils.register_class(cls)

    bpy.types.Object.tracked_properties = PointerProperty(type=TrackedProperty)
    bpy.types.Object.facemap_materials = CollectionProperty(type=FaceMapMaterial)

3 View Complete Implementation : view_layer.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):
        bpy.types.ViewLayer.luxcore = PointerProperty(
            name="LuxCore ViewLayer Settings",
            description="LuxCore ViewLayer settings",
            type=cls,
        )

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by vladvrabie
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)

3 View Complete Implementation : __init__.py , under MIT License , by tin2tin
def register():
    ### OPERATORS ###
    from bpy.utils import register_class
    for cls in classes :
        register_class(cls)

    ### MENU ###
    bpy.types.TEXT_MT_text.append(screenwriter_menu_export)

    ### PROPERTIES ###
    bpy.types.Scene.last_character = IntProperty(default=0)
    bpy.types.Scene.last_line = StringProperty(default="")
    bpy.types.Scene.last_line_index = IntProperty(default=0)
    bpy.types.Scene.text_replace = PointerProperty(type=TextReplaceProperties)
    bpy.types.Scene.title_page_index = IntProperty(default=0)

3 View Complete Implementation : cm_eventsMenu.py , under GNU General Public License v3.0 , by johnroper100
def event_register():
    bpy.utils.register_class(event_entry)
    bpy.utils.register_class(SCENE_OT_cm_events_populate)
    bpy.utils.register_class(SCENE_OT_event_remove)
    bpy.utils.register_class(SCENE_OT_event_move)
    bpy.utils.register_class(events_collection)
    bpy.utils.register_class(SCENE_UL_event)
    bpy.utils.register_class(SCENE_PT_event)
    bpy.types.Scene.cm_events = PointerProperty(type=events_collection)

3 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Clockmender
def register():
    """Register Classes and Create Scene Variables.

    Operates on the classes list defined above.
    """

    from bpy.utils import register_class

    for cls in classes:
        register_class(cls)

    # OpenGL flag
    #
    wm = WindowManager
    # Register Internal OpenGL Property
    #
    wm.pdt_run_opengl = BoolProperty(default=False)

    Scene.pdt_pg = PointerProperty(type=PDTSceneProperties)

3 View Complete Implementation : leomoon-textcounter.py , under GNU General Public License v3.0 , by leomoon-studios
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 View Complete Implementation : world.py , under GNU General Public License v3.0 , by LuxCoreRender
    @classmethod
    def register(cls):
        bpy.types.World.luxcore = PointerProperty(
            name="LuxCore World Settings",
            description="LuxCore World settings",
            type=cls,
        )

3 View Complete Implementation : godot_game_tools.py , under MIT License , by vini-guerrero
def register():
    from bpy.utils import register_class
    for cls in classes:
        register_class(cls)

    bpy.types.Scene.godot_game_tools = PointerProperty(type=AddonProperties)

0 View Complete Implementation : properties.py , under GNU General Public License v3.0 , by black-h0bB1T
    @staticmethod
    def initialize():
        from . render_previews_ops  import RenderPreviews
        WindowManager.asset_wizard_properties = PointerProperty(type=Properties)
        WindowManager.asset_wizard_render_previews = RenderPreviews()

0 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by bladesero
def register():
    bpy.utils.register_module(__name__)
    bpy.types.Scene.bakevmdToolProps = PointerProperty(type=BakePhysicsSettings)

0 View Complete Implementation : PivotPainterTool280.py , under GNU General Public License v3.0 , by Gvgeo
def register():
	from bpy.utils import register_class
	for cls in classes:
		register_class(cls)
	bpy.types.Scene.pivot_painter = PointerProperty(type = UE4_PivotPainterProperties)

0 View Complete Implementation : property.py , under GNU General Public License v2.0 , by HBPNeurorobotics
    def register(self, btype, parent=[]):
        """
        Register the wrapped property group to blender. This needs only be called for property groups directly
        assigned to a blender type. Nested groups are automatically registered.

        .. todo::

            Register should use the standard registration mechanism of PluginManager. Right now, however,
            this would break the current registration process. This will be done once the properties for
            the robot designer have been clarified and migrated to this representation.

        @param btype: Blender type (e.g. :class:`bpy.types.Object` or :class:`bpy.types.Bone`)
        @param parent: For traversing nested groups
        @return: Reference to the generated :class:`bpy.types.PropertyGroup`-derived class (not used by the user).
        """

        if bpy.app.version == 'Mockup':
            return

        newPropertyGroup = type(self.__class__.__name__ + "_unwrapped", (bpy.types.PropertyGroup,), {})

        for attr in self.__dict__.items():
            if isinstance(attr[1], PropertyHandler):
                attr[1].property[1]['attr'] = attr[0]
                # print(attr[0], attr[1].d)
                property=attr[1].property
                setattr(newPropertyGroup, attr[0], property) # property[0](**property[1]))
                attr[1].reference = parent + [attr[0]]
            elif isinstance(attr[1], PropertyGroupHandlerBase):
                pg = attr[1].register(None, parent + [attr[0]])
                print(type(pg), pg.__bases__)
                p = PointerProperty(type=pg)
                p[1]['attr'] = attr[0]
                setattr(newPropertyGroup, attr[0], p)

        core_logger.debug("Registering generated property group: %s", newPropertyGroup.__name__)
        bpy.utils.register_class(newPropertyGroup)
        PluginManager._registered_properties.append((newPropertyGroup,btype))
        if btype:
            setattr(btype,'RobotDesigner',
                    bpy.props.PointerProperty(type=getattr(bpy.types, newPropertyGroup.__name__)))
            core_logger.debug("Assigning property to: %s", btype)
        return newPropertyGroup

0 View Complete Implementation : cm_actionsMenu.py , under GNU General Public License v3.0 , by johnroper100
def action_register():
    bpy.utils.register_class(action_entry)
    bpy.utils.register_class(SCENE_OT_cm_actions_populate)
    bpy.utils.register_class(SCENE_OT_action_remove)
    bpy.utils.register_class(SCENE_OT_agent_move)
    bpy.utils.register_class(actions_collection)
    bpy.utils.register_class(SCENE_UL_action)
    bpy.utils.register_class(SCENE_PT_action)
    bpy.types.Scene.cm_actions = PointerProperty(type=actions_collection)

    bpy.utils.register_class(action_pair)
    bpy.utils.register_class(SCENE_OT_cm_action_pair_populate)
    bpy.utils.register_class(SCENE_OT_action_pair_remove)
    bpy.utils.register_class(SCENE_OT_action_pair_move)
    bpy.utils.register_class(action_pair_collection)
    bpy.utils.register_class(SCENE_UL_action_pair)
    bpy.types.Scene.cm_action_pairs = PointerProperty(
        type=action_pair_collection)

    bpy.utils.register_class(action_group)
    bpy.utils.register_class(action_groups_collection)
    bpy.types.Scene.cm_action_groups = PointerProperty(
        type=action_groups_collection)

0 View Complete Implementation : cm_blenderData.py , under GNU General Public License v3.0 , by johnroper100
def registerTypes():
    bpy.utils.register_class(modifyBoneProperty)
    bpy.utils.register_class(initialTagProperty)
    bpy.utils.register_class(agent_entry)
    bpy.utils.register_class(agent_type_entry)
    bpy.utils.register_class(group_entry)

    bpy.types.Scene.cm_groups = CollectionProperty(type=group_entry)
    bpy.types.Scene.cm_groups_index = IntProperty()

    bpy.types.Scene.cm_view_details = BoolProperty(name="View Group Details",
                                                   description="Show a breakdown of the agents in the selected group",
                                                   default=False)
    bpy.types.Scene.cm_view_details_index = IntProperty()

    bpy.utils.register_class(manual_props)
    bpy.types.Scene.cm_manual = PointerProperty(type=manual_props)
    bpy.types.Scene.cm_switch_dupli_group_suffix = StringProperty(
        name="Dupli Group Suffix")
    bpy.types.Scene.cm_switch_dupli_group_target = StringProperty(
        name="Dupli Group Target")

0 View Complete Implementation : mesh_morpher.py , under GNU General Public License v3.0 , by JoshRBogart
def register():
    bpy.utils.register_class(UT_MeshMorpherPanel)
    bpy.utils.register_class(UT_PackMorphTargetsOperator)
    bpy.utils.register_class(UT_MeshMorpherProperties)
    bpy.types.Scene.mesh_morpher_properties = PointerProperty(type = UT_MeshMorpherProperties)

0 View Complete Implementation : properties.py , under GNU General Public License v3.0 , by khalv
    @classmethod
    def register(cls):
        bpy.types.ParticleSettings.mdl_particle_sys = PointerProperty(type=War3ParticleSystemProperties)

0 View Complete Implementation : ui.py , under GNU General Public License v3.0 , by khalv
    @classmethod
    def register(cls):
        bpy.types.Object.mdl_billboard = PointerProperty(type=properties.War3BillboardProperties)

0 View Complete Implementation : ui.py , under GNU General Public License v3.0 , by khalv
    @classmethod
    def register(cls):
        bpy.types.Light.mdl_light = PointerProperty(type=properties.War3LightSettings)

0 View Complete Implementation : auto_load.py , under GNU General Public License v3.0 , by LuxCoreRender
def get_dependency_from_annotation(value):
    if isinstance(value, tuple) and len(value) == 2:
        if value[0] in (bpy.props.PointerProperty, bpy.props.CollectionProperty):
            return value[1]["type"]
    return None

0 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by mantissa-
def register():
    bpy.utils.register_class(RandoMeshPanel)
    bpy.utils.register_class(RandoMesh)
    bpy.utils.register_class(RandoMeshProps)
    bpy.types.Scene.rmprop = PointerProperty(type=RandoMeshProps)

0 View Complete Implementation : development_api_navigator.py , under GNU General Public License v3.0 , by Microvellum
def register():
    from bpy.props import StringProperty, IntProperty, PointerProperty
    
    class ApiNavProps(bpy.types.PropertyGroup):
        """
        Fake module like class.
    
        bpy.context.window_manager.api_nav_props
         
        """ 
        path = StringProperty(name='path',
            description='Enter bpy.ops.api_navigator to see the documentation',
            default='bpy')
        old_path = StringProperty(name='old_path', default='')
        filter = StringProperty(name='filter',
            description='Filter the resulting modules', default='')
        reduce_to = IntProperty(name='Reduce to ',
            description='Display a maximum number of x entries by pages',
            default=10, min=1)
        pages = IntProperty(name='Pages',
            description='Display a Page', default=0, min=0)

    bpy.utils.register_module(__name__)

    bpy.types.WindowManager.api_nav_props = PointerProperty(
        type=ApiNavProps, name='API Nav Props', description='')

    register_keymaps()

0 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    bpy.utils.register_class(MocapConstraint)
    bpy.types.Armature.mocap_constraints = CollectionProperty(type=MocapConstraint)
    bpy.utils.register_class(MocapMapping)
    #string property for storing performer->enduser mapping
    bpy.types.Bone.map = StringProperty()
    #Collection Property for storing enduser->performer mapping
    bpy.types.Bone.reverseMap = CollectionProperty(type=MocapMapping)
    #Boolean property for storing foot bone toggle
    bpy.types.Bone.foot = BoolProperty(name="Foot",
        description="Mark this bone as a 'foot', which determines retargeted animation's translation",
        default=False)
    #Boolean property for storing if this bone is twisted along the y axis,
    # which can happen due to various sources of performers
    bpy.types.Bone.twistFix = BoolProperty(name="Twist Fix",
        description="Fix Twist on this bone",
        default=False)
    #Boolean property for toggling ik retargeting for this bone
    bpy.types.PoseBone.IKRetarget = BoolProperty(name="IK",
        description="Toggle IK Retargeting method for given bone",
        update=toggleIKBone, default=False)
    bpy.utils.register_class(AnimationStitchSettings)
    bpy.utils.register_class(MocapNLATracks)
    #Animation Stitch Settings Property
    bpy.types.Armature.stitch_settings = PointerProperty(type=AnimationStitchSettings)
    #Current/Active retargeted animation on the armature
    bpy.types.Armature.active_mocap = StringProperty(update=retarget.NLASystemInitialize)
    #Collection of retargeted animations and their NLA Tracks on the armature
    bpy.types.Armature.mocapNLATracks = CollectionProperty(type=MocapNLATracks)
    #Advanced retargeting boolean property
    bpy.types.Armature.advancedRetarget = BoolProperty(default=False, update=advancedRetargetToggle)
    #frame step - frequency of frames to retarget. Skipping is useful for previewing, faster work etc.
    bpy.types.Armature.frameStep = IntProperty(name="Frame Skip",
            default=1,
            description="Number of frames to skip - for previewing retargets quickly (1 is fully sampled)",
            min=1)
    bpy.utils.register_module(__name__)

0 View Complete Implementation : ui.py , under GNU General Public License v3.0 , by Microvellum
    @classmethod
    def register(NetRenderSettings):

        def address_update_callback(self, context):
            netsettings = context.scene.network_render
            verify_address(netsettings, True)

        NetRenderSettings.server_address = StringProperty(
                        name="Server address",
                        description="IP or name of the master render server",
                        maxlen = 128,
                        default = "[default]",
                        update = address_update_callback)
        
        NetRenderSettings.server_port = IntProperty(
                        name="Server port",
                        description="port of the master render server",
                        default = 8000,
                        min=1,
                        max=65535)
        
        NetRenderSettings.use_master_broadcast = BoolProperty(
                        name="Broadcast",
                        description="broadcast master server address on local network",
                        default = True)
        NetRenderSettings.use_ssl = BoolProperty(
                        name="use ssl",
                        description="use ssl encryption for communication",
                        default = False)
        NetRenderSettings.cert_path = StringProperty(
                        name="CertPath",
                        description="Path to ssl certifcate",
                        maxlen = 128,
                        default = "",
                        subtype='FILE_PATH')
        NetRenderSettings.key_path = StringProperty(
                        name="key",
                        description="Path to ssl key file",
                        maxlen = 128,
                        default = "",
                        subtype='FILE_PATH')
        
        NetRenderSettings.use_slave_clear = BoolProperty(
                        name="Clear on exit",
                        description="delete downloaded files on exit",
                        default = True)
        
        NetRenderSettings.use_slave_thumb = BoolProperty(
                        name="Generate thumbnails",
                        description="Generate thumbnails on slaves instead of master",
                        default = False)
        
        NetRenderSettings.slave_tags = StringProperty(
                        name="Tags",
                        description="Tags to associate with the slave (semi-colon separated)",
                        maxlen = 256,
                        default = "")

        NetRenderSettings.use_slave_output_log = BoolProperty(
                        name="Output render log on console",
                        description="Output render text log to console as well as sending it to the master",
                        default = True)
        
        NetRenderSettings.slave_render = BoolProperty(
                        name="Render on slave",
                        description="Use slave for render jobs",
                        default = True)

        NetRenderSettings.slave_bake = BoolProperty(
                        name="Bake on slave",
                        description="Use slave for baking jobs",
                        default = True)

        NetRenderSettings.use_master_clear = BoolProperty(
                        name="Clear on exit",
                        description="Delete saved files on exit",
                        default = False)

        NetRenderSettings.use_master_force_upload = BoolProperty(
                        name="Force Dependency Upload",
                        description="Force client to upload dependency files to master",
                        default = False)
        
        default_path = os.environ.get("TEMP")
        
        if not default_path:
            if os.name == 'nt':
                default_path = "c:/tmp/"
            else:
                default_path = "/tmp/"
        elif not default_path.endswith(os.sep):
            default_path += os.sep
        
        NetRenderSettings.path = StringProperty(
                        name="Path",
                        description="Path for temporary files",
                        maxlen = 128,
                        default = default_path,
                        subtype='FILE_PATH')
        
        NetRenderSettings.job_type = EnumProperty(
                                items=(
                                                ("JOB_BLENDER", "Blender", "Standard Blender Job"),
                                                ("JOB_PROCESS", "Process", "Custom Process Job"),
                                                ("JOB_VCS", "VCS", "Version Control System Managed Job"),
                                            ),
                                name="Job Type",
                                description="Type of render job",
                                default="JOB_BLENDER")
    
        NetRenderSettings.job_name = StringProperty(
                        name="Job name",
                        description="Name of the job",
                        maxlen = 128,
                        default = "[default]")
        
        NetRenderSettings.job_category = StringProperty(
                        name="Job category",
                        description="Category of the job",
                        maxlen = 128,
                        default = "")

        NetRenderSettings.job_tags = StringProperty(
                        name="Tags",
                        description="Tags to associate with the job (semi-colon separated)",
                        maxlen = 256,
                        default = "")

        NetRenderSettings.job_render_engine = EnumProperty(
                                items = (
                                                ("BLENDER_RENDER", "BLENDER", "Standard Blender Render"),
                                                ("CYCLES", "CYCLES", "Cycle Render"),
                                                ("OTHER", "OTHER", "Other non-default Render"),
                                         ),
                                name="render",
                                description="Render engine used to render this job",
                                default="BLENDER_RENDER")

        NetRenderSettings.job_render_engine_other = StringProperty(
                        name="Render engine",
                        description="Render engine other than the builtin defaults (POVRAY_RENDER, ...)",
                        maxlen = 128,
                        default = "")
        
        NetRenderSettings.save_before_job = BoolProperty(
                        name="Save Before Job",
                        description="Save current file before sending a job",
                        default = False)

        NetRenderSettings.chunks = IntProperty(
                        name="Chunks",
                        description="Number of frame to dispatch to each slave in one chunk",
                        default = 5,
                        min=1,
                        max=65535)
        
        NetRenderSettings.priority = IntProperty(
                        name="Priority",
                        description="Priority of the job",
                        default = 1,
                        min=1,
                        max=10)
        
        NetRenderSettings.vcs_wpath = StringProperty(
                        name="Working Copy",
                        description="Path of the local working copy",
                        maxlen = 1024,
                        default = "")
    
        NetRenderSettings.vcs_rpath = StringProperty(
                        name="Remote Path",
                        description="Path of the server copy (protocol specific)",
                        maxlen = 1024,
                        default = "")
    
        NetRenderSettings.vcs_revision = StringProperty(
                        name="Revision",
                        description="Revision for this job",
                        maxlen = 256,
                        default = "")
    
        NetRenderSettings.vcs_system = EnumProperty(
                                items= netrender.versioning.ITEMS,
                                name="VCS mode",
                                description="Version Control System",
                                default=netrender.versioning.ITEMS[0][0])
    
        NetRenderSettings.job_id = StringProperty(
                        name="Network job id",
                        description="id of the last sent render job",
                        maxlen = 64,
                        default = "")
        
        NetRenderSettings.active_slave_index = IntProperty(
                        name="Index of the active slave",
                        description="",
                        default = -1,
                        min= -1,
                        max=65535)
        
        NetRenderSettings.active_blacklisted_slave_index = IntProperty(
                        name="Index of the active slave",
                        description="",
                        default = -1,
                        min= -1,
                        max=65535)
        
        NetRenderSettings.active_job_index = IntProperty(
                        name="Index of the active job",
                        description="",
                        default = -1,
                        min= -1,
                        max=65535)
        
        NetRenderSettings.mode = EnumProperty(
                                items=(
                                                ("RENDER_CLIENT", "Client", "Act as render client"),
                                                ("RENDER_MASTER", "Master", "Act as render master"),
                                                ("RENDER_SLAVE", "Slave", "Act as render slave"),
                                            ),
                                name="Network mode",
                                description="Mode of operation of this instance",
                                default="RENDER_CLIENT")
        
        NetRenderSettings.slaves = CollectionProperty(type=NetRenderSlave, name="Slaves", description="")
        NetRenderSettings.slaves_blacklist = CollectionProperty(type=NetRenderSlave, name="Slaves Blacklist", description="")
        NetRenderSettings.jobs = CollectionProperty(type=NetRenderJob, name="Job List", description="")
        
        bpy.types.Scene.network_render = PointerProperty(type=NetRenderSettings, name="Network Render", description="Network Render Settings")

0 View Complete Implementation : __init__.py , under GNU General Public License v3.0 , by Microvellum
def register():
    for cls in classes:
        bpy.utils.register_class(cls)

    bpy.types.Scene.print_3d = PointerProperty(type=Print3DSettings)

0 View Complete Implementation : render_freestyle_svg.py , under GNU General Public License v3.0 , by Microvellum
def register():
    linestyle = bpy.types.FreestyleLineStyle
    linestyle.use_export_strokes = BoolProperty(
            name="Export Strokes",
            description="Export strokes for this Line Style",
            default=True,
            )
    linestyle.stroke_color_mode = EnumProperty(
            name="Stroke Color Mode",
            items=(
                ('BASE', "Base Color", "Use the linestyle's base color", 0),
                ('FIRST', "First Vertex", "Use the color of a stroke's first vertex", 1),
                ('FINAL', "Final Vertex", "Use the color of a stroke's final vertex", 2),
                ),
            default='BASE',
            )
    linestyle.use_export_fills = BoolProperty(
            name="Export Fills",
            description="Export fills for this Line Style",
            default=False,
            )

    for cls in classes:
        bpy.utils.register_class(cls)
    bpy.types.Scene.svg_export = PointerProperty(type=SVGExport)


    # add callbacks
    bpy.app.handlers.render_init.append(render_init)
    bpy.app.handlers.render_write.append(render_write)
    bpy.app.handlers.render_pre.append(svg_export_header)
    bpy.app.handlers.render_complete.append(svg_export_animation)

    # manipulate shaders list
    parameter_editor.callbacks_modifiers_post.append(SVGPathShaderCallback.modifier_post)
    parameter_editor.callbacks_lineset_post.append(SVGPathShaderCallback.lineset_post)
    parameter_editor.callbacks_lineset_post.append(SVGFillShaderCallback.lineset_post)

    # register namespaces
    register_namespaces()

    # handle regressions
    bpy.app.handlers.version_update.append(handle_versions)

0 View Complete Implementation : fpx_ui.py , under GNU General Public License v3.0 , by Microvellum
def inject_properties():
    Object.fpt = PointerProperty(type=FptEmptyProperties)