Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 02-06-2010, 05:48 AM   #1
pixel_poison
Registered User
 
Join Date: Oct 2008
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default Image sequence speed?

Hey all, basically ive got a simple image sequence with an repeating loop (using expressions)

file3.frameExtension += 1;
if (file3.frameExtension > 9)
file3.frameExtension =1;

I wanted to know how do i go about changing the speed of the loop? i found online an expression, but it doesnt quiet work.

file3.frameExtension= floor ((frame - 1) / 3) + 1;
if (file3.frameExtension > 9)
file3.frameExtension =1;

With this expression, it does slow down the loop but it just stops.

Any help would be great

Thanks.

Last edited by pixel_poison : 02-06-2010 at 06:26 AM.
pixel_poison is offline   Reply With Quote
Old 05-06-2010, 07:02 PM   #2
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

You can use a modulo operator to do this.

For example:

Code:
int $speed = 4;

if ((frame % $speed) == 0)
    file3.frameExtension++;

if (file3.frameExtension > 9)
    file3.frameExtension =1;
Hope this helps you out.

Edit: Just to explain. The higher the speed variable is, the slower it will be. For this, it will take 4 frames to increment once.
__________________
Imagination is more important than knowledge.

Last edited by NextDesign : 08-06-2010 at 02:26 AM.
NextDesign is offline   Reply With Quote
Old 08-06-2010, 03:40 AM   #3
pixel_poison
Registered User
 
Join Date: Oct 2008
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

no dice, i can scroll through the time slider *which animates but play it or play through playblast the image stands still.

im using maya 2008.
pixel_poison is offline   Reply With Quote
Old 09-06-2010, 06:03 AM   #4
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

I'm not sure what the problem is. It plays back just fine on my machine.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 09-06-2010, 07:54 AM   #5
gster123
Moderator
 
gster123's Avatar
 
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Thanks: 1
Thanked 51 Times in 45 Posts
Default

It could be the file numbering of the images. Check to see if they are compatable with Maya.

Thers is a thread on this in the members loungs (think the title has image sequence in it)
__________________
"No pressure, no diamonds" Thomas Carlyle
gster123 is offline   Reply With Quote
Old 11-06-2010, 01:37 AM   #6
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

I don't know... It may be that the images are just too big for Maya to cache into memory at once. What are the resolutions of the images? I assume that your images are in the "name.####.ext" format.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 21-06-2010, 03:01 AM   #7
pixel_poison
Registered User
 
Join Date: Oct 2008
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

Im pretty sure its not the file size (pretty low res), ive attached the images.check it out. It could be a naming problem. Im all out of ideas

















pixel_poison is offline   Reply With Quote
Old 21-06-2010, 08:07 PM   #8
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

Plays back just fine on my machine. What are your machine's specs?
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 22-06-2010, 01:00 PM   #9
pixel_poison
Registered User
 
Join Date: Oct 2008
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

AMD athlon 64 x2 dual Core Processor 2.01 Ghz
2gb ram
64bit OS
NVIDIA G3Force 7900 GTX
pixel_poison is offline   Reply With Quote
Old 25-06-2010, 08:03 PM   #10
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

Hmmm... Oh. Make sure that your playback speed is set to "Play every frame"
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Old 26-06-2010, 05:09 AM   #11
pixel_poison
Registered User
 
Join Date: Oct 2008
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

yep, play every frame selected. still no dice
could it be the amount of time on the animation?
the animation stops @ frame 27. so.....

file3.frameExtension= floor ((frame - 1) / 3) + 1;
if (file3.frameExtension > 9)
file3.frameExtension =1;

im guessing this expression is like make each image go for 3 frames.

3 frames x 9 images = 27 total frames.

I just want it to loop after 27 frames.
pixel_poison is offline   Reply With Quote
Old 29-06-2010, 02:16 AM   #12
NextDesign
Technical Director
 
NextDesign's Avatar
 
Join Date: Feb 2004
Posts: 2,982
Thanks: 33
Thanked 532 Times in 471 Posts
Default

No that isn't a problem. Also, my expression is faster to evaluate, as it doesn't do as much math as the floored one.

I think it has to do with your computer. Try making a plane in a new scene, and see if it plays back then. Otherwise, I think you're a bit sol here mate.
__________________
Imagination is more important than knowledge.
NextDesign is offline   Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Breakfast - Original SM Gallery Image by Philip Miss_Nova Simply Maya Gallery 4 19-04-2011 07:37 PM
Stratocaster - Original SM Gallery Image by Philip Miss_Nova Simply Maya Gallery 2 31-12-2010 10:30 AM
Fan - Original SM Gallery Image by Dreamtalks David Simply Maya Gallery 4 22-12-2010 05:46 AM
Rhinoman - Original SM Gallery Image by Septopus David Simply Maya Gallery 0 09-12-2010 02:42 PM
Physical Fitness Center Lounge - Original SM Gallery Image by Philip Miss_Nova Simply Maya Gallery 0 05-12-2010 12:32 PM

Thread Tools





A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.