Thanks again, I dont mean to bother you, but are you sure that the getPanel -underPointer is the adequate command?
Now I get: Error: Cannot use data of type no type in a scalar operation.
And if I try to print the result of $currentPanel, it only says "getPanel -underPointer";
Its very strange, if you say it works for you it should work here to.
I also tried to change the -underPointer to -withFocus, since I think that is more appropriate when testing the script from the scripteditor, but nothing helps. Hmm...
Best whishes, T.