Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   What do these `` things mean? (https://simplymaya.com/forum/showthread.php?t=12407)

Gun-Kata 28-06-2004 06:16 AM

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`;

dannyngan 28-06-2004 06:37 AM

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.

Gun-Kata 28-06-2004 04:00 PM

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?

dannyngan 28-06-2004 04:40 PM

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.


All times are GMT. The time now is 09:25 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018