Issue with custom plugin + camera

Hi there – I’m seeing some strange behavior in the attached patch, which uses a custom plugin.

I can connect the last output pin of the Contour node to the input pin of the StateLogic node, and I can connect the IsCameraEnabled output pin of the StateLogic node to the Enabled pin of the VideoIn node, but I can’t have both at the same time. Why is this? Some issue with my plugin?

thanks! (6.1 kB)

see here basic programming concepts
and especially here creating feedback loops

Thanks! FrameDelay helped me out.