Puppet

A puppet

Constructors

this
this()

Creates a new puppet from nothing ()

this
this(Node root)

Creates a new puppet from a node tree

Members

Functions

addTextureToSlot
uint addTextureToSlot(Texture texture)

Adds a texture to a new slot if it doesn't already exist within this puppet

clearThumbnail
void clearThumbnail(bool deleteTexture)

Clears this puppet's thumbnail

deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)

Deserializes a puppet

draw
void draw()

Draws the puppet

finalizeDeserialization
void finalizeDeserialization(Fghj data)

Finalizer

find
T find(string name)

Finds Node by its name

find
T find(uint uuid)

Finds Node by its unique id

findNodesType
T[] findNodesType(Node n)

Finds nodes based on their type

findParameter
Parameter findParameter(uint uuid)

Returns a parameter by UUID

findParameterIndex
ptrdiff_t findParameterIndex(string name)

Returns the index of a parameter by name

getAllParts
Part[] getAllParts()

Returns all the parts in the puppet

getRootParts
Node[] getRootParts()

Gets the internal root parts array

getTextureSlotIndexFor
ptrdiff_t getTextureSlotIndexFor(Texture texture)

Gets the texture slot index for a texture

populateTextureSlots
void populateTextureSlots()

Populate texture slots with all visible textures in the model

removeParameter
void removeParameter(Parameter param)

Removes a parameter from this puppet

rescanNodes
void rescanNodes()

Rescans the puppet's nodes

resetDrivers
void resetDrivers()

Reset drivers/physics nodes

serialize
void serialize(S serializer)

Serializes a puppet

setThumbnail
void setThumbnail(Texture texture)

Sets thumbnail of this puppet

toString
string toString()

This cursed toString implementation outputs the puppet's nodetree as a pretty printed tree.

transform
Transform transform()

Gets this puppet's root transform

update
void update()

Updates the nodes

updateTextureState
void updateTextureState()

Updates the texture state for all texture slots.

Variables

automation
Automation[] automation;

Parameters

enableDrivers
bool enableDrivers;

Whether drivers should run

extData
JSONValue[string] extData;

Extended vendor data

meta
PuppetMeta meta;

Meta information about this puppet

parameters
Parameter[] parameters;

Parameters

physics
PuppetPhysics physics;

Global physics settings for this puppet

renderParameters
bool renderParameters;

Whether parameters should be rendered

root
Node root;

The root node of the puppet

textureSlots
Texture[] textureSlots;

INP Texture slots for this puppet

Meta