Page 1 of 1

Rename a layercomp through script (LM_String problem)

Posted: Tue May 12, 2015 11:58 am
by JeroenKoffeman
Dear forum members,

I try to change a layercomp's name through lua. Is it possible?

Code: Select all

comp:SetName(LM.String:Set(name))

Comp refers to the layercomp, name refers to a string.
It doesn't work. What's the proper way to change an LM_String?

Thanks in advance

Re: Rename a layercomp through script (LM_String problem)

Posted: Wed May 13, 2015 12:46 am
by synthsin75
If I remember correctly, you'd do something like this:

local string = LM.String:new_local() --define LM.String object
string:Set(name) --set LM.String value
comp:SetName(string) --use LM.String

Re: Rename a layercomp through script (LM_String problem)

Posted: Sun Nov 08, 2015 2:10 pm
by JeroenKoffeman
Thanks, that worked.