If all you need to do is turn the node on/off, then you can use the built-in
node.setMask command to accomplish this. To turn off a named node you would set the node mask to 0:
Code:
model.setMask(0,'name')
To turn the node on, you would re-enable all the node mask bits:
Code:
model.setMask(viz.ALL_MASK_BITS,'name')