問 .. 問題出在那裡 ? mel

各Maya用戶可在這裡交流問題和分享制作經驗

版主: h2o, stantang

問 .. 問題出在那裡 ? mel

文章leeho » 22日 5月 2006年, 22:42

:mrgreen: 跟教程寫 , 但不成為何 .....有無高人指點 :mrgreen:
如下..


float $position1[] = 'getParticleAttr -at worldPosition fooShape.pt[1]';

locator1.tx = $position1[0];
locator1.ty = $position1[1];
locator1.tz = $position1[2];

float $position7[] = 'getParticleAttr -at worldPosition fooShape.pt[7]';

locator2.tx = $position7[0];
locator2.ty = $position7[1];
locator2.tz = $position7[2];

float $position19[] = 'getParticleAttr -at worldPosition fooShape.pt[19]';

locator3.tx = $position19[0];
locator3.ty = $position19[1];
locator3.tz = $position19[2];
頭像
leeho
CGV討論區會員
CGV討論區會員
 
文章: 2353
註冊時間: 20日 12月 2001年, 08:00
來自: HONG KONG

Share On:

Share on Facebook Facebook Share on Twitter Twitter

文章leeho » 22日 5月 2006年, 23:09

:roll:

expression -s "float $position1[] = 'getParticleAttr -at worldPosition fooShape.pt[1]'; \r\n\r\nlocator1.tx = $position1[0]; \r\nlocator1.ty = $position1[1]; \r\nlocator1.tz = $position1[2]; \r\n\r\nfloat $position7[] = 'getParticleAttr -at worldPosition fooShape.pt[7]'; \r\n\r\nlocator2.tx = $position7[0]; \r\nlocator2.ty = $position7[1]; \r\nlocator2.tz = $position7[2]; \r\n\r\nfloat $position19[] = 'getParticleAttr -at worldPosition fooShape.pt[19]'; \r\n\r\nlocator3.tx = $position19[0]; \r\nlocator3.ty = $position19[1]; \r\nlocator3.tz = $position19[2];" -o "" -ae 1 -uc all ;
// Error: {float $position1[] = 'getParticleAttr -at worldPosition fooShape.pt[1]';
//
// Error: Syntax error //
// Error: float $position7[] = 'getParticleAttr -at worldPosition fooShape.pt[7]';
//
// Error: Syntax error //
// Error: float $position19[] = 'getParticleAttr -at worldPosition fooShape.pt[19]';
//
// Error: Syntax error //
附加檔案
1.jpg
1.jpg (79.91 KiB) 被瀏覽 3267 次
頭像
leeho
CGV討論區會員
CGV討論區會員
 
文章: 2353
註冊時間: 20日 12月 2001年, 08:00
來自: HONG KONG

文章Lik » 23日 5月 2006年, 00:00

hey, u use a wrong quotation :!: when executing a command in Maya, the quotation should be " ` ", the charater above the "Tab" key on the keyboard. U have used sth like " ' ".

Also, try using "particle" command when queue particle data, such as :

float $position17[] = `particle -attribute velocity -order 17 -q particleShape1`;

This will run faster compare with yours, especially when the particle count is huge.
Lik
討論區新秀
討論區新秀
 
文章: 6
註冊時間: 22日 5月 2006年, 23:10

文章leeho » 23日 5月 2006年, 00:46

Lik 寫:hey, u use a wrong quotation :!: when executing a command in Maya, the quotation should be " ` ", the charater above the "Tab" key on the keyboard. U have used sth like " ' ".

Also, try using "particle" command when queue particle data, such as :

float $position17[] = `particle -attribute velocity -order 17 -q particleShape1`;

This will run faster compare with yours, especially when the particle count is huge.





:mrgreen: :mrgreen: 非常感激 :mrgreen: 原來是自己按錯符號 :oops:

現在particle 和 locator 溶合了 , :mrgreen: 感謝 ! thankfulness
頭像
leeho
CGV討論區會員
CGV討論區會員
 
文章: 2353
註冊時間: 20日 12月 2001年, 08:00
來自: HONG KONG


回到 Autodesk Maya

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 6 位訪客

cron