Detect if the mask output is connected, and attach mask editor
Detect if the mask output is connected, and attach mask editor