it´s very basic, small and all on one page - sorry for that, ilan

but it gives you an understand how the keyword system is working
most important thing at the moment is to know
0 = selected layer
-1 = all layer
the rest can be explored with the script output of m8
here is the download
http://files.me.com/gery4ye/rc9gea
have fun
gery
4youreye