FORUMS: list search recent posts

Image sequence speed?

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Ben Sharp
Image sequence speed?
on Feb 6, 2010 at 4:19:24 pm

Hi there, i have many animated textures using .tif image sequences.
I need them to play back at different speeds in my scene. is there an expression i can throw in to control the playback speed?

many thanks!

B


Return to posts index

Michiel Duvekot
Re: Image sequence speed?
on Feb 6, 2010 at 6:13:59 pm

You can simply change the expression
for example:

file1.frameExtension=frame*6.18;


Return to posts index

Ben Sharp
Re: Image sequence speed?
on Feb 6, 2010 at 6:26:46 pm

hi Michiel, thanks for your reply :)

That seems to just change the start frame, what i want to adjust how many frames each image lasts for, so that a ten image sequence can be played over 20 frames, or 40, or 80..


thanks again, much appreciated.



Return to posts index


Michiel Duvekot
Re: Image sequence speed?
on Feb 8, 2010 at 11:34:39 pm

No, it doesn't just change the start frame.

But if you want to repeat each frame a number of times, you would need an expression like this:

file1.frameExtension= floor ((frame - 1) / 3) + 1;

which does this:

frame 1 -> image.0001
frame 2 -> image.0001
frame 3 -> image.0001
frame 4 -> image.0002
frame 5 -> image.0002
frame 6 -> image.0002
frame 7 -> image.0003
frame 8 -> image.0003
frame 9 -> image.0003
frame 10 -> image.0004
frame 11 -> image.0004
frame 12 -> image.0004

to stretch 10 images over 40 frames, you would use:

file1.frameExtension= floor ((frame - 1) / 3) + 1;





Return to posts index

Ben Sharp
Re: Image sequence speed?
on Feb 9, 2010 at 10:34:33 am

ah excellent. Works like a charm.

Thanks again,
B


Return to posts index

Ben Sharp
Re: Image sequence speed?
on Feb 6, 2010 at 6:27:06 pm

hi Michiel, thanks for your reply :)

That seems to just change the start frame, what i want is to adjust how many frames each image lasts for, so that a ten image sequence can be played over 20 frames, or 40, or 80..


thanks again, much appreciated.



Return to posts index


Josh Lange
Re: Image sequence speed?
on Apr 28, 2010 at 6:33:50 pm

Hi Michiel,

I came upon this post with the same problem as the other person. However, I don't know where in Maya to adjust the expression as you mentioned. Can you tell me how to do this?

Thank you,

-Josh


Return to posts index

Michiel Duvekot
Re: Image sequence speed?
on Apr 28, 2010 at 7:05:49 pm

Not sure what there is to explain. You edit expressions in the Expression Editor. The expression you want to edit is on the Image Number attribute of a file texture, and you access it by RMB clicking on the purple numeric field and going to Edit Expression …


Return to posts index

Josh Lange
Re: Image sequence speed?
on Apr 28, 2010 at 7:30:23 pm

Ok, I figured it out with that information. I'm fairly new to expressions, so that was just enough for it to click for me. Thanks!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]