[21 Feb 2012] Re: Re: Hollywood 5: Infinity out now!
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 21 Feb 2012 15:31:30 +0100

Then it was a bug in 4.8. Setting layer attributes before the layer is even created doesn't make senseI'm the lucky guy who always seem to code in "an unexpected way" because "of course", in my case, the 4.8 script does not work with 5.0
Since I identified the problem (without remembering exactly why I did it this way), I ask for a quick-solution-answer that someone might know:
The following command:
SetLayerStyle("footer",{text=myvar})
is called before the "footer"-Layer is created. In Hollywood4.8 this was ok,
Are you looking for something like LayerExists()?in 5.0 I get the error: "(German: Ebene "footer" wurde im aktuellen Hintergrundbild nicht gefunden!) Layer "footer" was not found in current backgroud picture!"
The reason is that the inital page has no footer but later pages do have a footer.
Unfortunately, it's also not possible with
GetAttribute(#LAYER,"footer",#ATTRLAYERID")
to check, if a certain layer exists.
Is there another way to check if a certain layer exists?