Problem with GetAttr

Problem with GetAttr

anmiroshnikov
Explorer Explorer
278 Views
2 Replies
Message 1 of 3

Problem with GetAttr

anmiroshnikov
Explorer
Explorer

While doing

select -r polySurface11.f [57];
getAttr polySurface11Shape.uvPivot;
// Result: 0.225335 0.293394 //

Everything is correct, but when done

 

select -r polySurface11.f [57];
float $ pos [] = 'getAttr polySurface11Shape.uvPivot';

 

it turns out
// Error: float $ pos [] = 'getAttr polySurface11Shape.uvPivot'; //
// Error: Line 2.16: Syntax error //

 

What am I doing wrong?

 

0 Likes
279 Views
2 Replies
Replies (2)
Message 2 of 3

hamsterHamster
Advisor
Advisor

Spaces matter, whereas single quotes don't count. Use apostrophes (Shift+Tilde key) instead.

Also, use code block in your posts for your code (</> button), as who knows what every browser might do with your charset, which is especially damaging when Python code posted.

Here:

select -r polySurface11.f[57];
float $pos[] = `getAttr polySurface11Shape.uvPivot`;

 


,,,_°(O__O)°_,,,
Maya2019.1 @ Windows10 & GeForce GTX1080Ti

If the post was helpful, click the
 ACCEPT SOLUTION  button, so others might find it much more easily.

0 Likes
Message 3 of 3

anmiroshnikov
Explorer
Explorer
Thank you very much!!!
0 Likes