June 07, 2023, 09:23:38 AM
Welcome,
Guest
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
This forum provides RSS feed. To query recent posts use
this url
.
More...
Home
Help
Search
Calendar
Login
Register
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Current Layer
« previous
next »
Pages: [
1
]
Print
Author
Topic: Current Layer (Read 2345 times)
0 Members and 1 Guest are viewing this topic.
eborr
Regular poster
Karma: 4
Offline
Posts: 196
Current Layer
«
on:
June 24, 2009, 02:43:59 PM »
another newbie type question, how can I progammatically get the current active layer name,
I have tried expressions like
var x = Layer.Name;
and this just causes a compiler error -any thoughts
Logged
Azrael
Regular poster
Karma: 9
Offline
Gender:
Posts: 155
Re: Current Layer
«
Reply #1 on:
June 24, 2009, 09:05:53 PM »
Probably because the var "Layer" of "Layer.Name" was no initialized.
Try:
Code: WME Script
var
Layer =
Scene
.
GetLayer
(
"LayerName"
)
;
var
x = Layer.
Name
;
I hope it's what you need
Logged
Print
Pages: [
1
]
« previous
next »
Wintermute Engine Forum
>
Wintermute Engine
>
Technical forum
>
Topic:
Current Layer