This adds a neatly formatted expression library function comment onto your expression.
/*===expression.lib functions===addMaster('masterName');add3DPointControl('thisLayer/master','effectName',[value,value,value]);add2DPointControl('thisLayer/master','effectName',[value,value]);addColorControl('thisLayer/master','effectName','hexNumber');addCheckboxControl('thisLayer/master','effectName',0/1);addSliderControl('thisLayer/master','effectName',value);addAngleControl('thisLayer/master','effectName',value);addLayerControl('thisLayer/master','effectName');===expression.lib end functions===*/
If you already have an expression on the layer:
var x =100;var y =100;[x,y]
It will keep that information and place the functions at the top of the expression.
/*===expression.lib functions===addMaster('masterName');add3DPointControl('thisLayer/master','effectName',[value,value,value]);add2DPointControl('thisLayer/master','effectName',[value,value]);addColorControl('thisLayer/master','effectName','hexNumber');addCheckboxControl('thisLayer/master','effectName',0/1);addSliderControl('thisLayer/master','effectName',value);addAngleControl('thisLayer/master','effectName',value);addLayerControl('thisLayer/master','effectName');===expression.lib end functions===*/var x =100;var y =100;[x,y]