CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 04-30-2003, 07:50 PM   #1
tymznd
Know-it-All
 
tymznd's Avatar
portfolio
Charles Duncan
Studio city, United States
 
Join Date: Jan 2003
Posts: 340
Send a message via ICQ to tymznd
jsCreature pdf

.... from the pdf

Quote:
Creating a "type" of node....
-Create a locator, add an attribute called "Creature" of type string.
-Select Create > Locator
-Select Modify > Add Attribute
-Name the attribute Creature, and make it type String
Now that we know that our "creatures" are actually locators with an attribute..... we can type the following command:
ls -type spaceLocator;



......from the script editor
spaceLocator -p 0 0 0;
// Result: locator1 //
ls -type spaceLocator;
// Error: Unknown object type: spaceLocator //


Does anyone else get this?
 
Old 04-30-2003, 08:27 PM   #2
jschleifer
schmoderator
 
jschleifer's Avatar
CGSociety Member
portfolio
jason schleifer
Head of Character Animation
PDI/Dreamworks
USA
 
Join Date: Apr 2002
Posts: 878
Send a message via AIM to jschleifer
weird.. it used to be called spaceLocator, now it's just locator:


spaceLocator -p 0 0 0;

ls -type locator;
// Result: locatorShape1 //
__________________
jason schleifer
Animator - http://jasonschleifer.com/
Co-Founder - http://www.nimblecollective.com
 
Old 04-30-2003, 08:43 PM   #3
tymznd
Know-it-All
 
tymznd's Avatar
portfolio
Charles Duncan
Studio city, United States
 
Join Date: Jan 2003
Posts: 340
Send a message via ICQ to tymznd
Jason

Thanks for the reply.... also I am on a mac and am getting this when running the jsJointOrient:
--------------------------------------------
jsOrientJoint;
// Error: string $cmd = "jsOrientJoint ;
//
// Error: Unterminated string. //
-------------------------------------------

I did a search and found what it doesn't like..... do you think that because I am on a mac that it is translating some of the characters??
Quote:
proc jsCreateOrientJointCB ()
{
// define the command first. The command will take 1 input, either 1 or 0. 1 will mean Z is UP. 0 will mean Z is DOWN
string $cmd = "jsOrientJoint ;

button -e -c ($cmd + 1) jsZUpButton;
button -e -c ($cmd + 0) jsZDownButton;
}


I mean, what is --- 1
I assume that those should be quotes.....weird


ALSO - Why do you use Z up or down instead of Y up or down???
 
Old 04-30-2003, 09:07 PM   #4
jschleifer
schmoderator
 
jschleifer's Avatar
CGSociety Member
portfolio
jason schleifer
Head of Character Animation
PDI/Dreamworks
USA
 
Join Date: Apr 2002
Posts: 878
Send a message via AIM to jschleifer
Heya!

yep, it's a string error.. you can grab a working script (hopefully) at my homepage:

http://homepage.mac.com/jschleifer/HomePage/

I used z up because that's what we were using at work. convenience, really. works for backs!
__________________
jason schleifer
Animator - http://jasonschleifer.com/
Co-Founder - http://www.nimblecollective.com
 
Old 04-30-2003, 09:25 PM   #5
tymznd
Know-it-All
 
tymznd's Avatar
portfolio
Charles Duncan
Studio city, United States
 
Join Date: Jan 2003
Posts: 340
Send a message via ICQ to tymznd
Cool, got it.... works, thanks.

One note to others that are doing this tutorial.... I had to enter:
jsOrientJointUI
into the script editor.... instead of jsJointOrient, as the pdf specifies:

jsOrientJoint;
// Error: jsOrientJoint;
//
// Error: Wrong number of arguments on call to jsOrientJoint. //
 
Old 04-30-2003, 09:33 PM   #6
jschleifer
schmoderator
 
jschleifer's Avatar
CGSociety Member
portfolio
jason schleifer
Head of Character Animation
PDI/Dreamworks
USA
 
Join Date: Apr 2002
Posts: 878
Send a message via AIM to jschleifer
yep yep, jsOrientJointUI is the right one.. jsOrientJoint was only partway implimented & shouldn't have been included in the docs.

d'oh!

-jason
__________________
jason schleifer
Animator - http://jasonschleifer.com/
Co-Founder - http://www.nimblecollective.com
 
Old 01-15-2006, 01:00 AM   #7
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 04:08 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.