WriteNode Auto Naming:

1- Change Format:

[string range [value [topnode].file] 0 end-7].jpg

[join [lrange [split [value [topnode].file] /] 0 3] /]/bokeh.##.exr

Python Expression:

1- set parm:

hou.parm("/obj/tantacle/switch1/input").set(0)