Switches still cook nodes that are not on the active stream?

   1342   0   1
User Avatar
Member
15 posts
Joined: Feb. 2016
Offline
Houdini 18.0.499
All inputs of a swtich top still get considered for the cook. I'm using a switch to switch off a node when a render engine's python API can't be loaded, using an expression in the switch's input parameter. I can add a try/except block inside the Python Script top, but it's a little annoying to have to add all the logic under the except, as I dont think you can just `return` out of a python script early.


I've noticed this also with bypassed top nodes elsewhere in the network. Sometimes I'll have some laying around during testing, not connected to the output, but if they have any errors or something, they'll affect the whole graph.
Edited by jamesr - Aug. 6, 2020 16:44:38

Attachments:
switch_is_evaluated.png (15.3 KB)

  • Quick Links