only work on active layercomp

limitation due to jsx working on active doc only