Add new layer to layercomp from script
Posted: Fri Mar 27, 2015 2:30 pm
Dear forum members.
I am trying to update layercomps through script. This is the only documentation I found:
http://aslua.com/index.php?show=class&name=LayerComp
Can lua script check the name of the layercomp of a layer?
The start of my code:
Right now it doesn't find moho.layerComp. How do I acces the class LayerComp?
Thanks in advance,
Jeroen
I am trying to update layercomps through script. This is the only documentation I found:
http://aslua.com/index.php?show=class&name=LayerComp
Can lua script check the name of the layercomp of a layer?
The start of my code:
Code: Select all
function LayerScript(moho)
count = moho.document:CountLayerComps()
print(count)
for i = 0, count - 1 do
local comp = moho.layerComp(i)
print(comp:Name())
end
end
Thanks in advance,
Jeroen