0
$\begingroup$

Is there a way to use a sound file inside of the Sverchok addon?

I am trying to use the output of a sound file to drive an animation in Sverchok, but cannot figure out how to link the sound file into the Sverchok node interface.

I am essentially trying to copy the process used in this tutorial, where a sound file is used as a driver to affect an object's properties. I followed this tutorial easily enough, and could even add the driver to a value node in the Shader Editor to control an object's color. However, using the same process, I cannot add the driver to nodes inside Sverchok. I also tried getting the object's properties (in this case rotation, which is being driven by the sound file), but this does not seem to update in Sverchok with frame changes:

enter image description here

In the past I've gotten the output of a sound file into Sverchok via animation nodes (this and this post). Unfortunately, I've since started working on a new computer and cannot install animation nodes.

This blend file can be found here as well.

I am also using Sverchok version 1.1.0 with Blender version 3.1.2.

$\endgroup$
2
  • $\begingroup$ @Chris - if you are still interested, check out the answer below, worked well for me $\endgroup$
    – MarcusR
    Oct 12, 2022 at 3:54
  • $\begingroup$ Nice!!!!!!!!!!!! $\endgroup$
    – Chris
    Oct 12, 2022 at 4:57

1 Answer 1

1
$\begingroup$

Ok, I figured out a good workflow to achieve this, which is still pretty much the same as what is shown in the first few minutes of this video: https://www.blendernation.com/2014/04/03/using-sound-to-drive-animation-in-blender/

  1. Add an object
  2. Create a custom property for this object, make sure to increase the max value to something large, like 10,000

enter image description here

  1. Insert a keyframe on this custom property (with the current frame set to 1)

  2. Open the graph editor with the object selected, you should see the custom property there. Select Key > Bake Sound to F-Curves > select your sound file

  3. Add a driver to your object's location, rotation, or scale

  4. Edit the driver properties, change the driver type to Single Property, add your object to the Prop section, and add the custom variable data path to the Path section enter image description here

  5. You can now get the sound value from a node setup in sverchok like this:

enter image description here

blend file: https://drive.google.com/file/d/1DOkLNpoSbPhQ0zHhVpXeId1upZjZoWlG/view?usp=sharing

$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .