pyfrost.main¶
Convenient class used to create bifrost node graphs in python.
- author
Benoit Gielly <benoit.gielly@gmail.com>
Bifrost VNN command documentation https://help.autodesk.com/view/BIFROST/ENU/?guid=__CommandsPython_index_html
-
class
Graph(board=None)[source]¶ Bases:
objectCreate a new bifrost graph object.
-
board_name= 'default'¶
-
property
name¶ Get the name of the board.
-
property
nodes¶ Get nodes at the board/root level.
-
-
class
Node(graph, parent, nodetype=None, name=None)[source]¶ Bases:
objectCreate Node object.
-
__init__(graph, parent, nodetype=None, name=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
rename(name)[source]¶ Rename node.
Note
the renameNode option doesn’t return the new name, so the only way to figure out the unique name is to query all nodes, rename, query again and diff…(cool stuff, right?!)
-
property
path¶ Get node’s path.
-
property
name¶ Get node’s name.
-
property
parent¶ Get node’s parent.
-
property
type¶ Get node’s type.
-
property
uuid¶ Get node’s UUID.
-
-
class
Attribute(node_object, attribute=None)[source]¶ Bases:
objectCreate Attribute object.
-
__init__(node_object, attribute=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
-
property
exists¶ Check if attribute exists.
-
property
type¶ Get attribute type.
-
property
value¶ Get and set attribute value.
-