ScriptInterface:LayersWindowGetSearchContext()

Version added: 12.2

Return value:

Moho Class Object
function My_Test:Run(moho)
    print("The search context is " .. moho:LayersWindowGetSearchContext() .. ".")
    moho:LayersWindowSetSearchContext(MOHO.LAYERWND_SEARCHCONTEXT_TIMELINEVISIBILITYIS)
    print("The search context changed to " .. moho:LayersWindowGetSearchContext() .. ".")
    print("The search value is " .. moho:LayersWindowGetSearchContextValue() .. ".")
    local s = tostring(MOHO.LAYERWND_SEARCHCONTEXT_VIS_ISVISIBLE)
    moho:LayersWindowSetSearchContextValue(s)
    print("The search value changed to " .. moho:LayersWindowGetSearchContextValue() .. ".")
end

Search results

Usage of 'LayersWindowGetSearchContext' is found in the following scripts:

<< Back to ScriptInterface