MohoDoc:GetLayerComp(id)

Version added: 10.0

Added in version 10

ArgumentTypeDescriptionDefaultVer
idint3210.0

Return type: LayerComp

For example, to print all the LayerComps in a document:
for i = 0, moho.document:CountLayerComps()-1 do
print(moho.document:GetLayerComp(i):Name())
end