PDA

View Full Version : expression for slowmotion


bazuka
02-18-2003, 01:23 PM
Here's a problem!
If you have animated texture (image sequence of 50 frames) let's say.
Now, you want to make Maya call one image from the sequence every third frame.How?
example:
timeline frame 1,2,3=image sequence frame 1
timeline frame 4,5,6=image sequence frame 2:bounce
:bounce:

john_homer
02-19-2003, 03:34 AM
do I understand the question..?
key image.1 at frame 1 and key image.50 at frame 150

that should work.

.j

bazuka
02-19-2003, 08:16 AM
Ok here is the problem:
i wanna load 1 image sequence on every 3 frame, that means
in 1,2,3 frame he should load only first image from image sequence, in 4,5,6 frame he should load second image from image sequence and etc...

Does any1 have solution for this problem???

10x

mark_wilkins
02-19-2003, 09:03 AM
well, other than keyframing frameExtension in the file texture, you could use an expression.

Make sure "use frame extension" is turned on and then create this expression (replace file1 with the name of your file texture):

file1.frameExtension = int(ceil(frame / 3));

This divides the frame number by 3, then "ceil" finds the next higher integer (so on frame 1, frame/3 would be 0.3333, and ceil(0.3333) would be 1.0)

The "int" explicitly converts the result to an integer, though it may not be necessary if frameExtension is integer valued, which I'm too lazy to look up.

-- Mark

CGTalk Moderation
01-14-2006, 11:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.