0
$\begingroup$

sorry for bad english

import bpy
from bpy import context
import os
print(os.getcwd())
scene = context.scene 
print(scene)
if not scene.sequence_editor:
    scene.sequence_editor_create()
scene.sequence_editor.sequences.new_sound("digital", "~/sound/digtal.mp3", 1, 19)
$\endgroup$
0
$\begingroup$

Problem in invalid file path.

Короче надо так '//digital.mp3', а не '~/sound/digtal.mp3'

scene.sequence_editor.sequences.new_sound("digital", "//digtal.mp3", 1, 19)

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.