<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
You do not want to use bpy.types.SoundSequence here! It’s a type
(and used this way, a constructor), not a data access!<br>
<br>
You are probably looking for something like that:<br>
<br>
for seq in bpy.context.sequence_editor.sequences:<br>
if seq.type is 'SOUND':<br>
print(seq.volume)<br>
<br>
(Loop over that for all your frames of course).<br>
<br>
Bastien<br>
<br>
On 20/10/2013 03:08, flavio soares wrote:
<blockquote
cite="mid:CADZ9pkuhczX7VV-=x9eE_dNkzuCqqsocaQywTSQ3KQ3y=mcveg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
The audio exporter to Ardour is pretty much <a
moz-do-not-send="true"
href="https://github.com/szaszak/blender_velvet/blob/blue_velvet/blue_velvet.py">done</a>
and fully functional. <br>
<br>
I'm trying to expand it to get the audio fade
keyframes, but it seems it is not possible.<br>
<br>
</div>
This code for example:<br>
<br>
for i in bpy.context.sequences:<br>
bpy.context.scene.frame_current = i.frame_start<br>
start = i.frame_start<br>
while start < i.frame_final_end:<br>
print(bpy.types.SoundSequence(i).volume)<br>
bpy.context.scene.frame_current += 1<br>
start +=1<br>
<br>
</div>
Prints only:<br>
<br>
0.0<br>
0.0<br>
0.0<br>
</div>
<div>etc<br>
</div>
<div><br>
</div>
...when it should recognize the changes in volume
(keyframes) and print something like:<br>
<br>
</div>
<div>0.0<br>
</div>
<div>0.3<br>
0.6<br>
</div>
<div>1.0<br>
</div>
<div>1.0<br>
</div>
etc<br>
<br>
<br>
</div>
Any guesses why this is so?<br>
<br>
</div>
Thanks for the help. =)<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Bf-python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Bf-python@blender.org">Bf-python@blender.org</a>
<a class="moz-txt-link-freetext" href="http://lists.blender.org/mailman/listinfo/bf-python">http://lists.blender.org/mailman/listinfo/bf-python</a>
</pre>
</blockquote>
</body>
</html>