only work on active layercomp

limitation due to jsx working on active doc only
Merge branch 'master' into generator-assets