. question about new keyword in 2.5.5
  • anomad
    master
    Posts: 412
    Joined: Sun Oct 21, 2007 10:07 pm
    Location: north cakalacky, usa
    Contact:

    . question about new keyword in 2.5.5

    by anomad » Thu Jun 26, 2008 4:48 am

    . how do i use 'direct_layer_media_stepFrame' ?

    . can i map a midi event to a button in a module and use direct_layer_media_stepFrame to have it step through a movie frame by frame? would i set the movie speed to 0 to use it?

    . what is the correct syntax? i have a button that sends a nextFrame message, and the code i'm using looks like this:

    if msg=='nextFrame' :
    if param['value'] == 1.0 :
    modul8.setValue('direct_layer_media_stepFrame',0)

    .(the ',0' means use the current layer, right?) and that doesn't seem to do anything.

    . thanks in advance!
  • Lupin
    garageCube team
    Posts: 383
    Joined: Fri Aug 18, 2006 12:37 pm
    Location: France
    Contact:

    by Lupin » Thu Jun 26, 2008 2:34 pm

    no it's the number of frames you wanna step

    ex:
    in your case it would be be like this for the current layer :

    Code: Select all

    if msg ==  'nextFrame' and param['value']:
       modul8.setValue('direct_layer_media_stepFrame',1,0)
    Gael Abegg Gauthey (former known as Lupin)
    https://www.linkedin.com/in/abegg-gauthey/
  • anomad
    master
    Posts: 412
    Joined: Sun Oct 21, 2007 10:07 pm
    Location: north cakalacky, usa
    Contact:

    by anomad » Fri Jun 27, 2008 3:46 am

    . thanks!

    . that fixed it! and i found you can use negative numbers to skip backwards -- very nice

    . (btw, i'm a big fan of the modules you've posted! )
  • Lupin
    garageCube team
    Posts: 383
    Joined: Fri Aug 18, 2006 12:37 pm
    Location: France
    Contact:

    by Lupin » Fri Jun 27, 2008 12:03 pm

    thx, i also wanted to write a module to do a step by step. by the way i jsut added a module :
    (vs) Frame Stepper (layer)

    enjoy
    Gael Abegg Gauthey (former known as Lupin)
    https://www.linkedin.com/in/abegg-gauthey/
  • anomad
    master
    Posts: 412
    Joined: Sun Oct 21, 2007 10:07 pm
    Location: north cakalacky, usa
    Contact:

    by anomad » Sat Jun 28, 2008 4:30 am

    . very nice! pretty much what i was looking to do.

Who is online

Users browsing this forum: No registered users and 21 guests