< Previous | | Manuals Home | Boris FX | Next >
Calling Arbitrary Sizzle Functions
You can easily call any function using obj.Call("function", args. ). For example,
msh.Call("ApplyCameraMap", cam)
dist = msh.Call("IntersectDistance", pos, [1,0,0]) # from vector pos along X
The argument-passing and return interface accommodates the python object None, strings, numbers, points, vectors, and transforms, as well as SynthEyes trackers, cameras/moving objects, phases, meshes, splines, lights, extra points, and notes.
Be sure to pass arguments with the correct type, ie don't pass the string "10" to an argument expecting a number. You must convert it to the correct type first, or the call will fail.
You'll receive a python object representing the return value, with any of the types above. Note that different python objects can represent the same Sizzle object.
©2023 Boris FX, Inc. — UNOFFICIAL — Converted from original PDF.