AddOn-API¶
-
class
dmh_addon.
DMHExport
¶ Operator class (bpy.types.Operator, ExportHelper)
Returns: ‘FINISHED’
-
class
dmh_addon.
DMHImport
¶ Operator class (bpy.types.Operator, ImportHelper)
Returns: ‘FINISHED’
-
dmh_addon.
copyBmesh
(src, sca, rot, loc)¶ copying vertices’ coordinates and faces from a source Bmesh to AddOn options
Parameters: - src (bmesh) – source Bmesh that will be copied
- sca (4x4-matrix) – scaling matrix that will be used for transformation of the source Bmesh
- rot (4x4-matrix) – rotation matrix that will be used for transformation of the source Bmesh
- loc (4D-vector) – translationn vector that will be used for transformation of the source Bmesh
- src – source Bmesh that will be copied
Returns: none – exporting all data stored in bpy.types.Scene.dmh to file in json format
-
dmh_addon.
createEdges
(data, edge_pvr, knot_radius, edge_radius, edge_resolution)¶ modelling knots
Parameters: - data (list) – list of verticed, edges, world matrix and bevel weights
- edge_pvr (boolean) – option to use edge Pro-Vertex-Radius
- knot_radius (float) – radius for the knots
- edge_radius (float) – radius for the edges
- edge_resolution (integer) – resolution for the edges
Returns: none – calling copyBmesh()
-
dmh_addon.
createKnots
(data, knot_type, vertex_pvr, hide_knots, radius, knot_resolution)¶ modelling knots
Parameters: - src (bmesh) – source Bmesh that will be copied
- sca (4x4-matrix) – scaling matrix that will be used for transformation of the source Bmesh
- rot (4x4-matrix) – rotation matrix that will be used for transformation of the source Bmesh
- loc (4D-vector) – translationn vector that will be used for transformation of the source Bmesh
- src – source Bmesh that will be copied
Returns: none – exporting all data stored in bpy.types.Scene.dmh to file in json format
-
class
dmh_addon.
dmh_add
¶ Operator class (bpy.types.Operator)
Returns: ‘FINISHED’
-
class
dmh_addon.
dmh_options
¶ class to save the AddOn-options
-
dmh_addon.
export_data
(fileName)¶ export data to a ‘.dmh’-File
Parameters: fileName (str.) – Path and name of file Returns: none – exporting all data stored in bpy.types.Scene.dmh to file in json format
-
dmh_addon.
import_data
(fileName)¶ import data from a ‘.dmh’-File
Parameters: fileName (str.) – Path and name of file Returns: none – importing data and saving them in bpy.types.Scene.dmh
-
dmh_addon.
main_function
(context)¶ main function of the AddOn
Returns: ‘FINISHED’
-
dmh_addon.
make_obj
()¶ creating an object by using all data stored in options
Returns: none – exporting all data stored in bpy.types.Scene.dmh to file in json format
Menu function
Returns: none
Menu function
Returns: none
Menu function
Returns: none