Object Molecule

From oWiki

Jump to: navigation, search

Contents


Preference Dialog

File:Obj_pref.png

Attributes

type

string  ( r )
Type of this molecule, 'obj'.

pref.name

string  ( r )
The scriptable name for this object. This name can be set using rename method dynamically.

pref.obj

object  ( r, w )
The accessor to the actual object.


Methods

rename(n)

n: string

Rename this molecule.

clone()

Return: a molecule

Create a clone of this molecule.

attach(droplet)

droplet: a droplet object (e.g. app.box.droplet)

Attach this molecule to a droplet.

detach()

Remove this molecule from its droplet.

deleteMod()

Delete this molecule.

serialize()

Return: string

Serialize this molecule into its JSON representation.
Personal tools