NdefPreset:
Filter:
Classes (extension) | Undocumented classes

NdefPreset : NodeProxyPreset : ProxyPreset : Object
ExtensionExtension

storing and morphing between presets for Ndefs

Description

Like ProxyPreset, NdefPreset stores settings and can morph between them.

Class Methods

NdefPreset.all

the global dict for all NdefPreset instances

NdefPreset.proxyClass

the class to be used with NdefPreset: Ndef.

NdefPreset.new(key, namesToStore, settings, specs, morphFuncs)

access an existing NdefPreset or make a new one for a Ndef.

Arguments:

key

If key is key of an existing NdefPreset, then that is accessed. If key is a Ndef, then a net NdefPreset with that Ndef's key will be created.

namesToStore

which paramNames to store in the presets. if none given, inferred from the current proxy settings.

settings

provide preset settings for the proxy

specs

provide preset specs for the proxy, mainly for randomizing and morphing. if none given here, and object has a halo of specs, those in halo will be used.

morphFuncs

special functions to provide for morphing between non-numerical settings. not used yet.

Inherited class methods

Instance Methods

.key

the key under which the NdefPreset is stored in NdefPreset.all

.getFromProxy(except)

From superclass: NodeProxyPreset

get current values for namesToStore from proxy, except those given in <except>

Inherited instance methods

Examples