Skip to content

Randomizer Nodes

Each randomizer node changes one aspect of the scene. A node receives the Context when the tree executes and mutates it in place. Nodes are appended to a Randomizer in the order they should run: instances first, then poses, then appearance, then the camera.

Import

python
from telekinesis.illusion.randomizer.randomizer_node import (
    RandomizerNode,
    ObjectInstanceRandomizer,
    ObjectPoseRandomizer,
    MaterialRandomizer,
    BackgroundRandomizer,
    CameraPoseRandomizer,
)

target_objects is matched by prefix throughout, so passing "part_1" selects every instance registered under that name.

Nodes

Next Steps