[Bf-python] can't get audio volume changes via script

flavio soares qazav3.0 at gmail.com
Sun Oct 20 03:08:54 CEST 2013


Hi,

The audio exporter to Ardour is pretty much
done<https://github.com/szaszak/blender_velvet/blob/blue_velvet/blue_velvet.py>and
fully functional.

I'm trying to expand it to get the audio fade keyframes, but it seems it is
not possible.

This code for example:

for i in bpy.context.sequences:
    bpy.context.scene.frame_current = i.frame_start
    start = i.frame_start
    while start < i.frame_final_end:
        print(bpy.types.SoundSequence(i).volume)
        bpy.context.scene.frame_current += 1
        start +=1

Prints only:

0.0
0.0
0.0
etc

...when it should recognize the changes in volume (keyframes) and print
something like:

0.0
0.3
0.6
1.0
1.0
etc


Any guesses why this is so?

Thanks for the help. =)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20131019/15180785/attachment.html>


More information about the Bf-python mailing list