Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Could someone please explain; as well when to use backquotes or backticks as some like to refer to them as ?
MEL allows you to type commands in command syntax (similar to UNIX shell commands) and function syntax. In command syntax you can leave off quotation marks around single-word strings and separate arguments with spaces instead of commas.
setAttr ("mySphere1.translateX", 10); // Function Syntax
setAttr mySphere1.translateX 10; // Command Syntax
Function syntax automatically returns a value. To get a return value using command syntax, you must enclose the command in backquotes.
$a = getAttr ("mySphere.translateX"); // Function syntax
$b = `getAttr mySphere.translateY`; //Command syntax
Solved! Go to Solution.
