Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 23-08-2015 , 10:59 PM
Subscriber
Join Date: Apr 2014
Posts: 1

Scripting help please beginner

I've been going through a beginners book on maya. It calls out this string for mel. However, when i put it in

lookThroughModelPanel camera fullbody_camera0 modelPanel 4;

I get this error:

Error: Line 1.59: Wrong number of arguments on call to lookThroughModelPanel

help please. I typed it just as it said to.

# 2 24-08-2015 , 03:37 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
Seems like that lookThroughModelPanel command is looking for two arguments and you gave it four.


A working syntax would be:

Code:
lookThroughModelPanel nameOfCamera nameOfPanel;
I think the space between 'modelPanel' and '4' is unintended since there is indeed a panel named modelPanel4, which is what I think the book is referring to.


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads