Feedback

What's your question?

By: Asked from United Kingdom

How can I alter playback frame rate of maya sprite sequence?

copying from the Maya manual I have a 12 frame sprite image sequence cycling but need the sprites to stay on for 4 frames each.

current creation expression: flo_particleShape.spriteNumPP = rand (1, 12);

current runtime expression: floparticleShape.spriteNumPP = (floparticleShape.spriteNumPP + 1) % 12;

btw. What is the % doing in this expression?

Add comment viewed 90 times Latest activity 4 months ago

or Cancel

1 answer

  • 0

mark_gid from United Kingdom


file1.frameExtension=frame
//puts each frame of image sequence on sequential maya timeline frame.

file1.frameExtension=(frame /n )
//puts each frame of image sequence on every nth maya timeline frame.

file1.frameExtension=((frame /n ) % 12)
//puts each frame of image sequence on every nth maya timeline frame, % loops the sequence.

or Cancel