getProperty
Description
Gets a property from an element that is currently loaded (in the current scene or global node).
Since direct return values are only supported inside Director movies, this function is only available as a Director Lingo/Javascript call and as an evaluated argument for a setProperty action.
Syntax
Action:
Not available
API call:
getProperty("panoelement1","pan","persistent")
Arguments
-
target
ID of a currently loaded element.
When used in an action, you can use "_this" to point to the 'owner' object of the behavior. -
property
Property/attribute of the referenced element. -
flags
Options for the getProperty call. Options include:persistent
Get the original, persistent value from the XML document, not from the active instance.
History
- 23-Mar-07: Added flags
- 18-Oct-06: Added information about '_this'
- 13-Jan-06: Initial version
fieldOfView | SPi-V dev
getProperty bug?
Hi Aldo,
The getProperty function seems not to work.
I'll get a warning message: "Illegal command received ..."
see: http://panoquest.net/api_call_test.html
Thanks for looking into it.
Brigitte
hmm...
I'll see if I can fix that in the next release... (never thought about return values)
other global target elements ?
Apart from _this, what are the other globally available target that can be used ?
E.g, there is at least "_camera" that can be mentionned here. Are there any other ? Like _mouse to get the pan or tilt under the mouse cursor from instance ?
Re: other global target elements ?
Here's a list.