Adding User Node in Batch with Python

I thought there was a way to add a user created node in batch using python.
Here’s my code

Create the PAINT node

    paint = flame.batch.create_node("Paint")

I’ve substituted this

Create the PAINT node

    paint = flame.batch.create_node("PaintCH")

My node from the user bin is titled in the same way. Am I missing something?

As far as I know you can`t create a node from a node that’s in the node bin directly. You would have to save the node setup, create the node, and then load the saved node setup into the node you created.

Mike

Doesn’t it take longer to use a contextual menu selection than to drag a node from a bin?
I gues you’d get the benefit of precise placement in the schematic, node naming, automatic links etc.

Maybe @fredwarren can chime in here. Always thought this was possible.

I use a Stream Deck. With one button push I can add a mux node with a freeze and then a paint node. Works really well.

It is not available from the Python API, but from the Search Widget. This may be what you had in mind.

Please submit a General improvement request over at Flame Feedback for the support for it in the Python API.

@Hengy - oh got it.

thank you @fredwarren.

If you’re just simply looking to create a script for a node there’s a script on the portal called Batch Nodes that will let you either select and flame node and add it to a right click menu or you can right-click on a node and create a menu from that and it will save whatever settings you have. So you could just drag your PaintCH node into batch, right-click and save a menu. Then you should be able to assign it to a button on your stream deck.

2 Likes