Created by: zeffii
more token theme options.
import bpy
nt = bpy.data.node_groups['NodeTree']
n = nt.nodes['Console Node']
print(n.get_lexed_colors())
[('stringColor', (0.198512047, 0.60381627, 0.2609070, 1.0)),
('numberColor', (1.0, 0.71175, 0.64198547, 1.0)),
('name1Color', (0.024261888, 0.50130575, 0.6382718, 1.0)),
('parenColor', (0.366933584, 0.9712737, 1.0, 1.0)),
('braceColor', (0.656979084, 0.6999999, 0.57874518, 1.0)),
('bracketColor', (0.71199423, 1.0, 1.0, 1.0)),
('opColor', (1.0, 0.3000000, 0.6999999, 1.0)),
('commentColor', (0.4385440, 0.438544, 0.4385440, 1.0)),
('name2Color', (0.6999999, 0.8999999, 0.3000000, 1.0)),
('name3Color', (0.3000000, 0.8999999, 0.40000000, 1.0))]
the
mode is specifically for the ScriptNode, then console node will not read the socket data, but rather the
node.script_str
from the connected SNLite node