Multi-frame options?

  • I've tried the multi-frame batch file and in general think I understand what its doing but I'm not making much progress in trying to control it beyond the default next/previous buttons.

    Any chance you could note the options for this before the rest of the update documentation?

    Tried using a very simple

    set(image.frame, 2,1,1) to change the frame but it did not seem to work.

    Any insight/documentation for multi-frames greatly appreciated.

    Regards,

    Robert

    Edited 2 times, last by image360 (May 22, 2010 at 6:28 AM).

  • But then what are the options in the generated example?

    dec(image.frame,1,1,1);

    and

    inc(image.frame,1, get(image.frame), get(image.frames));

    Hi Robert,
    You've highlighted the saturation options for the dec and inc functions.
    - inc(var,byvalue*,max*,min*)
    - dec(var,byvalue*,min*,max*)
    ---- increase/decrease values (with saturation)
    ---- byvalue - add/sub this value to the var, default=1
    ---- max - max limit, when reaching it, the var will be set to min
    ---- min - min limit, when reaching it, the var will be set to max

    .....................--from releasenotes-1.0.8.10.txt

    So applying this to the examples you cited:

    dec(image.frame,1,1,1);

    In the above example, dec decreases the image.frame value by 1 until it passes the minimum value of 1 (in which case it sets it to 1). So no matter how many times you call dec, the image.frame value never goes lower than 1 (which is the frame number of the first frame). In other words, it never let's you rewind past the first frame.

    inc(image.frame,1, get(image.frames), get(image.frames));

    Here, inc increases the image.frame value by 1 until it exceeds the maximum value of image.frames in which case it sets it to image.frames). Here you keep increasing the value of image.frame until it reaches the last frame number (image.frames) and then it stops incrementing. So it never let's you fast forward past the last frame.

    Hope this helps

    steve

    Edited once, last by pinsane (May 27, 2010 at 8:35 PM).

  • thanks Steve!

    Wonderful, thanks, should have found that myself in the release notes. But like your recent wonderful tutorial on arugments - I'll have one of those too *thumbsup* , it's great to have someone go beyond helpful.

    thanks again,

    Robert

  • I want my pano to jump to the first frame when pressing the next-button while viewing the last frame (and the other way around). Is it possible? How?

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

  • I want my pano to jump to the first frame when pressing the next-button while viewing the last frame (and the other way around). Is it possible? How?

    try:

    Code
    inc(image.frame,1,get(image.frames),1);

    this will set the image.frame to 1 when it exceeds the last frame.

    similarly:

    Code
    dec(image.frame,1,1,get(image.frames));

    will wrap to the last frame when pressing the prev-button after getting to the first frame.

    steve

  • Works perfectly. Thank you very much. *smile*

    0100011101101100011001010110100101100011 0110100000100000011010110110110001100001 0111010001110011011000110110100001110100 0110010101110100001011000010000001001010 0111010101101110011001110110010100101110 0010000001000101011000110110100001110100 0010000001101010011001010111010001111010 0111010000101110

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!