"advancedLayersEnabled" - doesn't work after "addNewScene"?
Hello!
If I use this option as part of a function, this line of code does not work.
Tried:
- move the code to the global scope
- fetch (forEach) the updated array
As if it doesn't see the scene just created and passes by.
In the case of a separate run from another file - it works. Even on scenes, which are created by the script.
var doc = fl.getDocumentDOM()
var tl = doc.getTimeline()
var scs = doc.timelines
createScene()
function createScene() {
doc.addNewScene('New')
end = scs.length
cur = doc.currentTimeline
doc.reorderScene(cur, end)
tl.advancedLayersEnabled = true
}
This is important, because if I do "addItem" further in the script, the console writes: "Layer effects can only be seen when 'Advanced layers' mode is turned ON from document settings.
