Support > Scripts > Convert to Vector (Outline method)

ToonzScript Code

// Define the Input and Output folders

dir1 = "C:\\Toonz 7.0 stuff\\SCRIPT IMAGES IN\\";
dir2 = "C:\\Toonz 7.0 stuff\\SCRIPT IMAGES OUT\\";

// Define the parameters of the Outline Vector Conversion

v = new OutlineVectorizer();
v.accuracy = 10;
v.despeckling = 4;
v.preservePaintedAreas = 1;
v.cornerAdherence = 60;
v.cornerAngle = 45;
v.cornerCurveRadius = 25;
v.maxColors = 100;
v.toneThreshold = 130;

// Create a new level (a) where you load the file name.tlv

a = new Level().load(dir1+"name.tlv");
print("loaded\n",a);

// Convert the a level to a vector format

c = v.vectorize(a).save(dir2 + "vectorized.pli");

print("Converted to vector");

// View the vector level opening it in a Flipbook window

view(c);