Assign context via python

Is it possible to add/clear context views via Python?

If not directly then using assign next available context and clear all.

Thanks

Context via Python - Discord
Context via Python - Flame Feedback

Thanks Phil,

I’ll look into that when I get some time

At the node level you can use the set_context() function. You must pass an index and a socket name as arguments.

Then at the Batch level you can use the clear_context() and clear_all_contexts() functions. The former needs an index as its sole argument.