(before i check this out)
if i put a function inside a method, does have a ‘local’ status?
or will it have the same action (or a conflict) if i use the same
function name in another ‘twin’ method, doing the same thing to
different modulators/components?
or can i specify that a function is local?
eg:
structure12 = function (--mod, --value)
-- sets corresponding option views
local structure = panel:getModulatorByName("struct12_pt1"):getValue()
local SynPcm1 = panel:getComponent("tabs_SynPcm1_pt1")
local SynPcm2 = panel:getComponent("tabs_SynPcm2_pt1")
--
function see00()
SynPcm1:setPropertyInt("uiTabsCurrentTab", 0)
SynPcm2:setPropertyInt("uiTabsCurrentTab", 0)
end
if
structure == 0 then see00()
end
end
and then, i would want to use the same code, with a method
called ‘structure34’, addressing similarly named modulators
and components, but with names suffixed 3/4 instead of 1/2,
and keep the same ‘sub’-function names. or would these have
to now have unique names too?
ie: once created, do they remain in memory everywhere else
in the panel, ready to be called? or do they exist only for
that method?