Hi Dega,

i asked a similar question a longer time ago. Maybe this thread can help you.
IŽll also take a look at my old scripts. Maybe i can find the part where i did this.

Got to Thread

Greets