Extending Animation Nodes

by D. Stimits   Last Updated July 06, 2018 21:15 PM

I'm using Blender 2.79 on Linux with Animation Nodes (Python 3.6).

I'd like to add a stopwatch directly as a node within Animation Nodes, without the Invoke Subprogram. Currently my stopwatch works correctly as a script subprogram, but I can't use it as easily as I'd like and I'm also trying to learn how different add-ons can work together (imagine an add-on extending an add-on instead of directly extending Blender...one add-on importing classes from another add-on).

Seeing how an independent script works is easy, I'm having trouble getting my stopwatch script to directly import AnimationNode in my stopwatch, and I'm not sure, but I suspect I need to do this to make my stopwatch part of Animation Nodes. Can my add-on somehow import AnimationNode? My import statements have all failed even when the path is added to where AnimationNode is, e.g., this fails:

from animation_nodes import AnimationNode

ImportError: cannot import name 'AnimationNode'

Would I have to modify Animation Nodes directly without the possibility of extending it via a separate add-on? I really hate the idea of directly modifying someone else's add-on.

Related Questions

Making a single node using multiple nodes

Updated October 08, 2017 14:15 PM

Custom default settings for nodes/materials

Updated January 11, 2018 12:15 PM

Is there a way to change scrollbar width?

Updated March 28, 2018 17:15 PM

NODE VIEWER: zoom in/out as in 3D viewport

Updated October 19, 2017 18:15 PM

Creating custom node in Cycles

Updated February 15, 2018 00:15 AM