Procedural¶
-
class
guerilla.
Procedural
¶ Bases:
guerilla.Primitive
A scriptable procedural 3d renderable object.
A Procedural contains a lua script describing how to subdivide the primitive at render time.
-
Script
¶ The LUA script describing the primitive. This script must be written in the LUA syntax.
LUA{local plugin = {}
- function plugin:getlaabb ()
- return aabb.create (0, 1, 0, 1, 0, 1)
end
- function plugin:subdivide (parameters)
- RiPolygon (“P”, {0,0,0,0,0,1,1,0,1,1,0,0}, “st”, {0,0,0,1,1,1,1,0}, “N”, {0,1,0,0,1,0,0,1,0,0,1,0})
end
- return plugin
}
type: str
-
bake
()¶ Bake the procedural and pass it in “Read” mode. This methods is only for the HairAndFur procedural.
-
createref
(parent, name, filename)¶ Create a
ProceduralRef
to a gprocedural fileParameters: - parent (
Node
) – The parent to create the ProceduralRef in - name (str) – The name of the ProceduralRef
- filename (str) – The path to the referenced
Procedural
Returns: The created reference
Return type: ref
- parent (
-