View Single Post
# 1 11-08-2008 , 11:21 AM
pbman's Avatar
Subscriber
Join Date: Mar 2005
Location: London
Posts: 1,135

particle Emission

hey

i want to emit a particle every time an object rotates 90 in the Z axis.

float $Value = "getAttr frontGunGroup.rz";//gets the .rz
//value and assigns it to a variable

if(($Value % 90) == 0)
setAttr bulletEmitter.rate = 25;
//% is modular(?sp) so i am asking it if $Value divides by
//90 and has a remainder of zero it sets value of 25

i dont know if im barking up the wrong tree as i cant get it to work.
i think i need an else command in there as well


Now at SMU doing BSc 3D Computer Animation so its hard to get on here
My wire render tut https://forum.simplymaya.com/showthre...threadid=20973