Plush

Object#

plupy · Type index

Module: plupy · obtained from plupy.data.objects[...] or .new(name); use.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-only

Supports component edits.

inputs#

inputs -> Inputs   # read-only

Supports declared default edits.

pins#

pins -> Pins   # read-only

Supports property edits and exposure.

export_glb#

export_glb(path) -> dict

Write 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")

Components · DataBlock · Inputs · Pins

Source#