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

applyDeformToChildren
void applyDeformToChildren()
Undocumented in source. Be warned that the author may not have intended to support it.
clearThumbnail
void clearThumbnail(bool deleteTexture)

Clears this puppet's thumbnail

deserializeFromFghj
SerdeException deserializeFromFghj(Fghj data)

Deserializes a puppet

draw
void draw()

Draws the puppet

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
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

findTextureByRuntimeUUID
Texture findTextureByRuntimeUUID(uint uuid)

Finds a texture by its runtime UUID

getAllParts
Part[] getAllParts()

Returns all the parts in the puppet

getAnimations
Animation[string] getAnimations()

Gets the animation dictionary

getCombinedBounds
vec4 getCombinedBounds()

Gets the combined bounds of the puppet

getDrivers
Driver[] getDrivers()

Gets a list of drivers

getIsNodeBound
bool getIsNodeBound(Node n)

Gets if a node is bound to ANY parameter.

getParameterDrivers
Driver[Parameter] getParameterDrivers()

Gets a mapping from parameters to their drivers

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

reconstruct
void reconstruct()
Undocumented in source. Be warned that the author may not have intended to support it.
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(InochiSerializer serializer)

Serializes a puppet

serializeSelf
void serializeSelf(InochiSerializer serializer)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

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
ubyte[][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

transform
Transform transform;

Puppet render transform

Meta