Object#
An object datablock (plupy.data.objects[...]): reusable data with components, declared inputs and wireable pins. Place it with scene.objects.add(obj); every use shares it.
See components and wiring.
class Object(DataBlock)Inherits DataBlock: its members are documented there.
Usage and examples
Derived types: ComponentGroup
Members: components · inputs · pins · export_glb
components#
components -> Components # read-onlySupports component edits.
inputs#
inputs -> Inputs # read-onlySupports declared default edits.
pins#
pins -> Pins # read-onlySupports property edits and exposure.
export_glb#
export_glb(path) -> dictWrite this object and every mesh part under it to one GLB file, as the Inspector's Export GLB… does.
One mesh with a primitive per material, in the object's own space; base colour, normal, occlusion and roughness/metallic maps are embedded as PNG. Inactive children are left out; nothing in the project changes. Returns path, primitives, parts, triangles, textures and skipped (parts that could not load).
trolley = plupy.data.objects["Cage trolley"]
trolley.export_glb("/tmp/cage_trolley.glb")Related types#
Components · DataBlock · Inputs · Pins
Source#
- _live.py:932