Hi Rob,
In fact I'm not trying to modify visibility nor render visibility. I'm trying to change parameters values depending on if the object is displaying or rendering.
For instance, lets say I have an object with a subdivide. I want the subdivide depth value to be “2” at render time, but “1” at display time.
If I had an expression function or variable to detect if the node is rendering or displaying, that would be super easy.
But I've found the right way to do it I think:
First, I make a subnet for the node I want to set different display and render settings to.
Then, I copy reference the node, and set the render flag to it and the display flag on the original. I then set the values as I want them on each node.
The fact that it is in a subnet enables me to work only on the node that I want. At first I was thinking that I would need to duplicate the whole branch of nodes up to the node I wanted to affect. This would have had a big effect on the graphs visual complexity.
I'm new to Houdini, so this might be common knowledge…