Connecting boolean signals using Python

Hi! Is there any way to create a connection between two boolean signals with a python script?

See the connect method:
https://help.visualcomponents.com/4.9/Premium/en/Python_API/vcSignal.htm?rhhlterm=connect

Thanks! This worked.

Now I’m wondering if I could connect the boolean signals to “Component path sensor” behavior via Python script?

You need to create a Boolean signal behavior in the component and then assign it to the sensor behavior:

https://help.visualcomponents.com/4.9/Premium/en/English/Component%20Modeling/Behaviors/Sensors/Component_Path_Sensor.htm

https://help.visualcomponents.com/4.9/Premium/en/Python_API/vcBehaviour.htm?rhhlterm=path%20sensor

Then you can connect your Boolean signal to some other signal.

1 Like