Render.ru

Как получить атрибут заданной частицы в выражении?

Рейтинг
25
#1
Как можно получить скрость или положение заданной частицы в Expression? При помощи -attribute position -order 4 не получается...
 
Рейтинг
34
#2
file://localhost/C:/Programs/Alias/Maya8.0/docs/Maya8.0/en_US/Commands/particle.html

particle -attribute age -id 5 -q particle1;
// Returns the age of the particle with id 5 in object particle1

particle -attribute velocity -order 7 -q;
// Returns the velocity of the 7th particle in the currently selected
// particle object

// IMPORTANT NOTE: Querying the value of a per particle attribute
// requires the -attribute and -id or -order flags and their arguments
// to preceed the -q flag

particle -e -attribute velocity -order 7 -vectorValue 0.0 1.0 0.0;
// Edits the velocity of the 7th particle in the currently selected
// particle object to be 0.0, 1.0, 0.0

particle -e -attribute mass -id 3 -fv 0.7 particle1;
// Edits the mass of the particle in "particle1" with id 3 to be 0.7
 
Рейтинг
25
#3
Я это читал. Help - первое место. Но может я криво писал в окне выражений, но у меня не вышло.. Тогда так, нужно ли мне писать particle? То есть необходимо указать команду particle, с флагами, полностью, так?
 
Сверху