< Previous | Contents | Manuals Home | Boris FX

Creating a Rectangular Spline

This example shows how to create a small rectangular garbage matte at a specific location (arbitrary in this example). For example, mattes such as this can be used to make the auto-tracker ignore a burned-in time code.

obj = Scene.activeObj shot = obj.shot

nu = new shot.spline nu.isEnabled = 1

nu.vtx[1].uvNoCalc = Point(-0.015, -0.005) nu.vtx[2].uvNoCalc = Point(0.055, -0.005)


nuvtx1 = new nu.vtx nuvtx1.isCorner = 1

nuvtx1.uvNoCalc = Point(-0.085, -0.08)


nuvtx2 = new nu.vtx nuvtx2.isCorner = 1

nuvtx2.uvNoCalc = Point(0.055, -0.08)


nuvtx3 = new nu.vtx nuvtx3.isCorner = 1

nuvtx3.uvNoCalc = Point(0.055, 0.07)


nuvtx4 = new nu.vtx nuvtx4.isCorner = 1

nuvtx4.uvNoCalc = Point(-0.085, 0.07)


nuvtx1.ReCalc()

©2023 Boris FX, Inc. — UNOFFICIAL — Converted from original PDF.