Zoomerator script problem

Zoomerator script problem

Anonymous
Not applicable
1,275 Views
3 Replies
Message 1 of 4

Zoomerator script problem

Anonymous
Not applicable
Hi Guys

I downloaded this zoomerate 1.0 from creativecrash, it opens a seperate window that allows you to move your camera when you are working with an image plane around, and resets it, my problem is that when I ran the script for the first time it worked, however I forgot to save it and now when I try to run it, I get the error // Error: Object not found: scriptEditorPanel1. //. I'm not sure what this means, I am running on Mac OS 10.5 and have maya 2010. here is the link for it:

http://www.creativecrash.com/maya/downloads/scripts-plugins/interface-display/c/zoomerator-mel

Also I open the script in TextWrangler or TextEdit and then copy it over or just try to open the file itself.

Thanks
0 Likes
1,276 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
you get the error Object not found: scriptEditorPanel1 because you try to run it from the scriptEditor which has focus. (It has that blue border to indicate what the 'active' window is. Try this instead:


setFocus modelPanel4; zoomerate()
0 Likes
Message 3 of 4

Anonymous
Not applicable
So just to be clear because I'm really new to mel and didn't make this, I should run this in the scriptEditor instead. But what do u mean by setFocus modelPanel4; zoomerate() where should I put this in.

Thanks
0 Likes
Message 4 of 4

Anonymous
Not applicable
Since this problem comes from running the command from the scriptEditor, I figured you were executing this from the Script Editor

zoomerator() 


so I suggested you force focus on the perspective panel by changing that to

setFocus modelPanel4; zoomerator() 


but apparently, that's not what you're doing. Perhaps you sourced the script? That would have the same effect; it would also fail.

Anyway, there are two things you can do: type
setFocus modelPanel4; zoomerator() 
in the scriptEditor, or highlight
source "full_path_here/zoomerate-v1.0-.mel" ;
and drag that onto a shelf, and run it from there.
0 Likes