Home › Forums › General › Programming › get componentVisibleName › Reply To: get componentVisibleName
July 20, 2018 at 8:34 am
#84699
One thing I’m wandering is why I get the following error if I try to display the Namevar on console
Console(“Name = “..Namevar) give this error but when it’s set in a modulator the name is displayed correctly
At line [-1]: [C]
Error message: No such operator defined
This is a speciality of Ctrlr. In some cases you need to set the L() “converter” when getting the string:
Namevar = L(mod:getComponent():getPropertyString("componentVisibleName"))
AFAIK “L” stands for Lua. It will prepare a string gotten from a component for using within Lua.