SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / What do these `` things mean?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 28-06-2004, 06:16 AM   #1
Gun-Kata
Registered User
 
Gun-Kata's Avatar
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default What do these `` things mean?

Sorry for all my newbish questions, but what does it mean when something is enclosed by these `` ? Like for example

float $locZ = `getAttr locator1.tz`;

or

float $goalU[] = `particle -id $parentId -at goalU -q particleShape1`;
Gun-Kata is offline   Reply With Quote
Old 28-06-2004, 06:37 AM   #2
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

Backquotes are used when you need to use the results of a particular command inside another command or expression.

Looking at the first example, getAttr locator1.tz by itself would normally just return the TranslateZ value of locator1, print the results in the script editor and complete the command. The result is not usable at all.

Embedding the command within backquotes will make the results usable in an another command. In the case of the first example, the results of the command getAttr locator1.tz are assigned to the variable $locZ.
__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
Old 28-06-2004, 04:00 PM   #3
Gun-Kata
Registered User
 
Gun-Kata's Avatar
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! I have another question: your Blocky Guy character has some circles around him. Like the ones on the floor and some on his spine. What do they do?
Gun-Kata is offline   Reply With Quote
Old 28-06-2004, 04:40 PM   #4
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

Those are objects that I use to control the character. I like to keep the joints and ik handles hidden when I animate, so I'm only looking at the character itself and its controls.
__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

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

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.