Asset: activate a switch when an input is connected?

   1208   2   0
User Avatar
Member
1010 posts
Joined: April 2017
Offline
Hi!

I made a herringbone pattern that can be simple (rectangles) or complicated by using/connecting a curve to an input of the asset. I would like the pattern to stay simple (rectangles) until a curve is connected to the input 2.

-Olivier

Attachments:
asset_connection_changes_switch.jpg (90.1 KB)

User Avatar
Member
459 posts
Joined: Oct. 2011
Offline
You can check if anything is connected with opexist:

Here i pass an add node with just one point if nothing is connected.


-b
http://www.sidefx.com/docs/houdini/expressions/opexist.html [www.sidefx.com]
Edited by bonsak - Feb. 10, 2019 11:04:29
http://www.racecar.no [www.racecar.no]
User Avatar
Member
1010 posts
Joined: April 2017
Offline
Oh nice!

Thanks bonsak!

-Olivier
  • Quick Links