user: Show practical ways to work with Object Operators in a Blender add-on or script – include code.

assistant: et the active vertex group

    Parameters:
    :   **group** (*enum in* *[**]**,* *(**optional**)*) – Group, Vertex group to set as active

bpy.ops.object.vertex_group_smooth(*\**, *group_select_mode=''*, *factor=0.5*, *repeat=1*, *expand=0.0*)
:   Smooth weights for selected vertices

    Parameters:
    :   - **group_select_mode** (*enum in* *[**]**,* *(**optional**)*) – Subset, Define which subset of groups shall be used
        - **factor** (*float in* *[**0**,* *1**]**,* *(**optional**)*) – Factor
        - **repeat** (*int in* *[**1**,* *10000**]**,* *(**optional**)*) – Iterations
        - **expand** (*float in* *[**-1**,* *1**]**,* *(**optional**)*) – Expand/Contract, Expand/contract weights

bpy.ops.object.vertex_group_sort(*\**, *sort_type='NAME'*)
:   Sort vertex groups

    Parameters:
    :   **sort_type** (enum in [`'NAME'`, `'BONE_HIERARCHY'`], (optional)) – Sort Type, Sort type

bpy.ops.object.vertex_parent_set()
:   Parent selected objects to the selected vertices

bpy.ops.object.vertex_weight_copy()
:   Copy weights from active to selected

bpy.ops.object.vertex_weight_delete(*\**, *weight_group=-1*)
:   Delete this weight from the vertex (disabled if vertex group is locked)

    Parameters:
    :   **weight_group** (*int in* *[**-1**,* *inf**]**,* *(**optional**)*) – Weight Index, Index of source weight in active vertex group

bpy.ops.object.vertex_weight_normalize_active_vertex()
:   Normalize active vertex’s weights

bpy.ops.object.vertex_weight_paste(*\**, *weight_group=-1*)
:   Copy this group’s weight to other selected vertices (disabled if vertex group is locked)

    Parameters:
    :   **weight_group** (*int in* *[**-1**,* *inf**]**,* *(**optional**)*) – Weight Index, Index of source weight in active vertex group

bpy.ops.object.vertex_weight_set_active(*\**, *weight_group=-1*)
:   Set as active vertex group

    Parameters:
    :   **weight_group** (*int in* *[**-1**,* *inf**]**,* *(**optional**)*) – Weight Index, Index of source weight in active vertex group

bpy.ops.object.visual_geometry_to_objects()
:   Convert geometry and instances into editable objects and collections

bpy.ops.object.visual_transform_apply()
:   Apply the object’s visual transformation to its data

bpy.ops.object.volume_add(*\**, *align='WORLD'*, *location=(0.0, 0.0, 0.0)*, *rotation=(0.0, 0.0, 0.0)*, *scale=(0.0, 0.0, 0.0)*)
:   Add a volume object to the scene

    Parameters:
    :   - **align** (enum in [`'WORLD'`, `'VIEW'`, `'CURSOR'`], (optional)) –

          Align, The alignment of the new object

          - `WORLD`
            World – Align the new object to the world.
          - `VIEW`
            View – Align the new object to the view.
          - `CURSOR`
            3D Cursor – Use the 3D cursor orientation for the new object.
        - **location** ([`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 3 items in [-inf, inf], (optional)) – Location, Location for the newly added object
        - **rotation** ([`mathutils.Euler`](mathutils.html#mathutils.Euler "mathutils.Euler") rotation of 3 items in [-inf, inf], (optional)) – Rotation, Rotation for the newly added object
        - **scale** ([`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 3 items in [-inf, inf], (optional)) – Scale, Scale for the newly added object

bpy.ops.object.volume_import(*\**, *filepath=''*, *directory=''*, *files=None*, *hide_props_region=True*, *check_existing=False*, *filter_blender=False*, *filter_backup=False*, *filter_image=False*, *filter_movie=False*, *filter_python=False*, *filter_font=False*, *filter_sound=False*, *filter_text=False*, *filter_archive=False*, *filter_btx=False*, *filter_alembic=False*, *filter_usd=False*, *filter_obj=False*, *filter_volume=True*, *filter_folder=True*, *filter_blenlib=False*, *filemode=9*, *relative_path=True*, *display_type='DEFAULT'*, *sort_method=''*, *use_sequence_detection=True*, *align='WORLD'*, *location=(0.0, 0.0, 0.0)*, *rotation=(0.0, 0.0, 0.0)*, *scale=(0.0, 0.0, 0.0)*)
:   Import OpenVDB volume file

    Parameters:
    :   - **filepath** (*string**,* *(**optional**,* *never None**)*) – File Path, Path to file
        - **directory** (*string**,* *(**optional**,* *never None**)*) – Directory, Directory of the file
        - **files** (`bpy_prop_collection` of `OperatorFileListElement`, (optional)) – Files
        - **hide_props_region** (*boolean**,* *(**optional**)*) – Hide Operator Properties, Collapse the region displaying the operator settings
        - **check_existing** (*boolean**,* *(**optional**)*) – Check Existing, Check and warn on overwriting existing files
        - **filter_blender** (*boolean**,* *(**optional**)*) – Filter .blend files
        - **filter_backup** (*boolean**,* *(**optional**)*) – Filter .blend files
        - **filter_image** (*boolean**,* *(**optional**)*) – Filter image files
        - **filter_movie** (*boolean**,* *(**optional**)*) – Filter movie files
        - **filter_python** (*boolean**,* *(**optional**)*) – Filter Python files
        - **filter_font** (*boolean**,* *(**optional**)*) – Filter font files
        - **filter_sound** (*boolean**,* *(**optional**)*) – Filter sound files
        - **filter_text** (*boolean**,* *(**optional**)*) – Filter text files
        - **filter_archive** (*boolean**,* *(**optional**)*) – Filter archive files
        - **filter_btx** (*boolean**,* *(**optional**)*) – Filter btx files
        - **filter_alembic** (*boolean**,* *(**optional**)*) – Filter Alembic files
        - **filter_usd** (*boolean**,* *(**optional**)*) – Filter USD files
        - **filter_obj** (*boolean**,* *(**optional**)*) – Filter OBJ files
        - **filter_volume** (*boolean**,* *(**optional**)*) – Filter OpenVDB volume files
        - **filter_folder** (*boolean**,* *(**optional**)*) – Filter folders
        - **filter_blenlib** (*boolean**,* *(**optional**)*) – Filter Blender IDs
        - **filemode** (*int in* *[**1**,* *9**]**,* *(**optional**)*) – File Browser Mode, The setting for the file browser mode to load a .blend file, a library or a special file
        - **relative_path** (*boolean**,* *(**optional**)*) – Relative Path, Select the file relative to the blend file
        - **display_type** (enum in [`'DEFAULT'`, `'LIST_VERTICAL'`, `'LIST_HORIZONTAL'`, `'THUMBNAIL'`], (optional)) –

          Display Type

          - `DEFAULT`
            Default – Automatically determine display type for files.
          - `LIST_VERTICAL`
            Short List – Display files as short list.
          - `LIST_HORIZONTAL`
            Long List – Display files as a detailed list.
          - `THUMBNAIL`
            Thumbnails – Display files as thumbnails.
        - **sort_method** (*enum in* *[**]**,* *(**optional**)*) – File sorting mode
        - **use_sequence_detection** (*boolean**,* *(**optional**)*) – Detect Sequences, Automatically detect animated sequences in selected volume files (based on file names)
        - **align** (enum in [`'WORLD'`, `'VIEW'`, `'CURSOR'`], (optional)) –

          Align, The alignment of the new object

          - `WORLD`
            World – Align the new object to the world.
          - `VIEW`
            View – Align the new object to the view.
          - `CURSOR`
            3D Cursor – Use the 3D cursor orientation for the new object.
        - **location** ([`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 3 items in [-inf, inf], (optional)) – Location, Location for the newly added object
        - **rotation** ([`mathutils.Euler`](mathutils.html#mathutils.Euler "mathutils.Euler") rotation of 3 items in [-inf, inf], (optional)) – Rotation, Rotation for the newly added object
        - **scale** ([`mathutils.Vector`](mathutils.html#mathutils.Vector "mathutils.Vector") of 3 items in [-inf, inf], (optional)) – Scale, Scale for the newly added object

bpy.ops.object.voxel_remesh()
:   Calculates a new manifold mesh based on the volume of the current mesh. All data layers will be lost

bpy.ops.object.voxel_size_edit()
:   Modify the mesh voxel size interactively used in the voxel remesher