DimpleThing

Base class to represent various things in dimple

Inherits from:: Object

DimpleThing is a base class to represent various things in Dimple. Subclasses are DimpleWorld, DimpleCamera, DimpleObject and DimpleConstraint. This class is not used directly.

Accessing Instance and Class Variables

set(property,val)
Set a property to a value.
val
The value to set it to.
property
The property name.
get(property,interval)
Get a property of this object from dimple.
property
The property name
interval
The interval at which to get the property, in milliseconds. If nil, then the property is only retrieved once. If set to 0, the previously set interval is removed and no more messages will be received.
doesNotUnderstand(selector,args)
This forwards any unknown method to a set or a get method for a property with the same name as the attempted method. For example if 'a' is a DimpleObject, you can do a.position_(x,y,z), instead of a.set('position',[x,y,z]);
addAction(property,func)
Add an action to be done when the property is received.
property
The property name
func
The function to be performed. The argument is an array with the value(s).
removeAction(property)
Remove the action for this property.
verbose
verbose_
Set the verbosity level. If larger than 0, all incoming OSC messages for this thing are posted.
properties
IdentityDictionary holding all properties of the thing.
actions
IdentityDictionary holding all actions which should be performed as a property value is received from dimple.
responders
The OSCresponders for this thing.
addResponders
Add all OSCresponders
removeResponders
Remove all OSCresponders. Called when a thing is removed.
name_
name
The name of the thing. This is set automatically upon creation and is unique. It is used in determining the format of the OSC tags. Do not change this manually.
dimple_
dimple
The instance of Dimple that this instance is part of.
oscPath(property)
Creates a base osc tag for the property and this thing (used internally).
addOSCresponder(property)
Add an OSCresponder for this property (used internally).
initProps
Initialises the properties, actions and responders.

This helpfile was created with the class HelpFile2