mgear.rigbits.rbf_io module
Handles the import and exporting of all supported RBF node types
- mgear.rigbits.rbf_io.RBF_FILE_EXTENSION
extention of the serialized json data
- Type:
str
- mgear.rigbits.rbf_io.RBF_MODULES
nodeType: module api, normalized to fit the rbfManager
- Type:
Dict
__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=None, 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