you probably dont have it sourced properly try this in your shelf button: source "/path/to/your/script.mel/" name_of_the_function Then drag that to the shelf and try that. Alan