Blackprint
  • Home
  • Importing Blackprint
  • Editor
    • Getting Started
    • Example
    • Remote module server
  • Engine
    • This Engine section currently out of date
    • Create Custom Nodes
    • Register Interface
      • Interface Event
    • Register Node
    • Create New Instance
Powered by GitBook
On this page

Was this helpful?

  1. Engine

Create New Instance

Work In progress

// Create Blackprint Interpreter instance, `instance` in this documentation will refer to this
var instance = new Blackprint.Interpreter();

// Example: Create new node (after registration)
var node = instance.createNode('math/multiply', {/* node options */});

// Clear all nodes on this instance
instance.clearNodes();

// Example: Import nodes from JSON (after registration)
instance.importJSON(/* JSON || Object */);
PreviousRegister Node

Last updated 3 years ago

Was this helpful?