PDA

View Full Version : Creature Rig mel scripts


Phearielord
02-10-2003, 07:47 AM
hey

I have just finished watching the Maya DVD, 'Intergrating a Creature Rig within a Production Pipeline'
Let me just say, it is REALLY good.
Well done Jason.
One thing though.
When I try and run the mel scripts, it doesn't want to excecute.
I am running Maya 4.5, and since the scripts are written for Maya 4.0, it wouldn't run.
I have heard that old maya scripts wont work with 4.5, but can be fixed.

So.....how do I get the scripts to work in 4.5?

thanks

mark_wilkins
02-10-2003, 07:50 AM
I have heard that old maya scripts wont work with 4.5, but can be fixed.

Where have you heard that? Most old MEL scripts should work just fine in 4.5.

That said, things always change from release to release, which can affect certain scripts.

What error messages are you getting?

-- Mark

Phearielord
02-10-2003, 07:57 AM
there do seem to problems with certain scripts, same with 4 not reading 4.5 files.
Anyway, I got it to work.
I didn't want to be opened from the script editor.
it gave the message 'Error: Unterminated string.'
So I just typed it into the command line, and it worked.
It should work both ways, but nevermind.

mark_wilkins
02-10-2003, 07:59 AM
Hmm. I'm not sure. Anyone else have any idea what the issue is?

-- Mark

wrend
02-10-2003, 01:01 PM
not sure how it changed syntax from sourcing by file and sourcing by parsing from command line.

but w regards to 4 ->4.5 rig scripts breaking, some of thee may be due to use of add/mult nodes in networks, and a 4.5 change of index matters on these nodes.

dwalden74
02-10-2003, 03:52 PM
I've tried these scripts with 4.5. The only problem I had was with jsOrientJointUI, which had some backward quotation mark problems (from converting files from Linux I believe). Just fix the quotation marks and it should be fine. BTW, this isn't a 4.5 problem. Other than that the scripts should work no problem. Actually I'm not sure if I used all the scripts from the CD, so if you have another problem let me know in which script it is and I can look at it tonight...

:beer:
David

Phearielord
02-10-2003, 06:59 PM
I just seemed to have bad luck:rolleyes:
Cuz the very first script I tried from the DVD was the orientJointUI.
Apparently the only one that had problems
dwalden74, you mention something about quotation marks?
Where is that?
Does all the other ones work ok?, for I haven't tried them yet.
thanks anyway:thumbsup:

dwalden74
02-11-2003, 08:23 AM
Actually you don't even need jsOrientJointUI. You can do everything with just the jsOrientJoint script (I think!). Anyway, jsOrientJointUI has some BACKWARD quotation marks (I don't even know how to do this on a PC so I can't show it to you). Just look for the problematic lines (in script editor) and fix 'em if you need to.

The others should work no problem.

:beer:
David

Phearielord
02-11-2003, 08:47 AM
Ok, this is a bit off topic, but I have a problem with the rig.
dwalden74 , since you've seen it, maybe you can help me.
I am having problems with the Reverse node.
This is what it says in the Doc:
"In the Hypergraph, create a Reverse node, and connect L_shoulderCtrl.autoOrient to the Input X of that node, then connect the Output X to the pointConstraints l_origW# attribute"
The thing is, I dont have an output option, only an input.
Where do I find the output?





:hmm:

dwalden74
02-11-2003, 12:37 PM
Sure you have an output! All utility nodes have an output (actually I'm pretty sure that all nodes have an output). Maybe you don't see it in the attribute editor (would be nice I agree), but I can assure you, it's there!

So you can do it in different ways: with the connection editor, hypergraph, hypershade, or script editor. The most basic is with the script editor (although the connection editor is more user friendly):

connectAttr reverseNodeName.outputX pointConstraintName.l_origW#

Hope this helps-

:beer:
David

mark_wilkins
02-11-2003, 05:00 PM
Sorry if this seems obvious, but if you're in the connection editor, you only see input or output plugs at one time. To see the other for a given node, you need to click the From --> To button (or the To --> From button, depending) at the top.

-- Mark

CGTalk Moderation
01-14-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.