Hi All, first let me qualify this post as seriously newbee to scripting and MEL.
Basicly I'm trying to tie a Character(TRAX) to the emission rate of a particle group. My set up is as such: A particle emiter which emits at a user definable rate and a Character TRAX clip which needs to play each time a particle is emitted.
This is what I've tried so far..
recoil.startFrame = 24/GunAim.Fire_Rate
Recoil is the TRAX clip I want to repeat, I'm working at 24fps and I have Fire_rate tied to the rates of multiple emitters. my range for Fire_rate is 1 to 10.
So if I chage fire_rate I want the recoil TRAX clip to change rate as well.. or correspond to it.
The above expression will play the TRAX clip once at a correct frame but I just can't seem to figure out how to get it to continue or loop with the subsequently emitted particles. I'm trying to set it up so a simple change of fire_rate will change the rate of the TRAX clip.
I don't want to stretch the clip. The clip should play over itself if the rate causes the frames to overlap. There should be a pause after each clip cycle.
So, if anyone has some insight I'd much appreciate it. I feel like it's more simple than I think but I just can't seem to make the jump of logic here..