Page 1 of 1

. question about new keyword in 2.5.5

Posted: Thu Jun 26, 2008 4:48 am
by anomad
. 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!

Posted: Thu Jun 26, 2008 2:34 pm
by Lupin
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)

Posted: Fri Jun 27, 2008 3:46 am
by anomad
. 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! )

Posted: Fri Jun 27, 2008 12:03 pm
by Lupin
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

Posted: Sat Jun 28, 2008 4:30 am
by anomad
. very nice! pretty much what i was looking to do.