NodeGraphQt icon indicating copy to clipboard operation
NodeGraphQt copied to clipboard

Setting NODE_LAYOUT_DIRECTION per node graph.

Open LucaScheller opened this issue 3 years ago • 1 comments

Hey,
quick question about the vertical node graph node display style: It seems like currently one can only set it globally by changing the NODE_LAYOUT_DIRECTION variable in the constants.py. Are there plans to make this configurable per graph? (Are there reasons that it can't be configured per graph? If not, I could look into making a PR for this if you want.)

Thank you so much for creating this UI framework, it is very straight forward and easy to use! Cheers, Luca

LucaScheller avatar Aug 15 '22 06:08 LucaScheller

Created a PR here: #273

LucaScheller avatar Aug 16 '22 11:08 LucaScheller

Released v0.3.0 with a set_layout_direction() function

https://chantonic.com/NodeGraphQt/api/graph.html#NodeGraphQt.NodeGraph.set_layout_direction https://chantonic.com/NodeGraphQt/api/nodes/NodeObject.html#NodeGraphQt.NodeObject.set_layout_direction

jchanvfx avatar Oct 09 '22 09:10 jchanvfx

Amazing :) Thank you very much!

LucaScheller avatar Oct 09 '22 15:10 LucaScheller