mgear.rigbits.rbf_io¶
Handles the import and exporting of all supported RBF node types
-
mgear.rigbits.rbf_io.
RBF_FILE_EXTENSION
¶ str – extention of the serialized json data
-
mgear.rigbits.rbf_io.
RBF_MODULES
¶ Dict – nodeType: module api, normalized to fit the rbfManager
__author__ = “Rafael Villar” __email__ = “rav@ravrigs.com”
-
mgear.rigbits.rbf_io.
exportRBFs
(nodes, filePath)¶ exports the desired rbf nodes to the filepath provided
Parameters: - nodes (list) – of rbfnodes
- filePath (str) – filepath to json
-
mgear.rigbits.rbf_io.
fileDialog
(startDir, mode=0)¶ prompt dialog for either import/export from a UI
Parameters: - startDir (str) – A directory to start from
- mode (int, optional) – import or export, 0/1
Returns: path selected by user
Return type: str
-
mgear.rigbits.rbf_io.
importRBFs
(filePath)¶ import rbfs from file, using the assoiciated module type to recreate
Parameters: filePath (str) – filepath to json Returns: n/a Return type: n/a