Page 1 of 1

[06 Dec 2009] Problem with Designers ID numbers.

Posted: Sat Jun 13, 2020 5:32 pm
by Bugala
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sun, 06 Dec 2009 09:11:28 -0000

So im trying to make some custom code that shows and hides layers depending on value of X.

However, i have came to a problem. I havent figured out how to set layers IDs in designer so they wouldnt give any trouble.

If i ID them simply from beginning 1, 2, 3, it gives me trouble.

Then i tried to set IDs to 10, 11, 12, that didnt help

then 101, 102, and it said out of range.

setting 32,33,34 didnt help either.

So is there any way to give ID numbers so that they dont act random?

Maybe ID them all?

[08 Dec 2009] Re: Problem with Designers ID numbers.

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Dec 2009 01:20:06 +0100
So im trying to make some custom code that shows and hides layers depending on value of X.

However, i have came to a problem. I havent figured out how to set layers IDs in designer so they wouldnt give any trouble.

If i ID them simply from beginning 1, 2, 3, it gives me trouble.

Then i tried to set IDs to 10, 11, 12, that didnt help

then 101, 102, and it said out of range.

setting 32,33,34 didnt help either.

So is there any way to give ID numbers so that they dont act random?

Maybe ID them all?
I think what you want to use is SetLayerName(). By assigning a name to a layer, you can be sure that it never changes.