I have found a mel script in the internet for a xray button. For the script editor, I had echoe all commands on, but nothing apeared. Thanks anzway