Thanks for the quick reply, Dan. I was testing the expression above on the source parameter of a text layer. But I just tried this expression on the path property of a shape layer (where it will end up), and am getting the error below:
c=thisComp.layer(“BackgroundControls”).effect(“CropSelection”)(“Menu”);
a=”Crop_0″+c;
thisComp.layer(a).content(“Group 4”).content(“Path 1”).path
Error: Bad Method Arguments: incorrect type for argument 1 (expected: ‘int’ provided: ‘NaN’)