Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Global variables inside JS



That's very cool; I wonder if a JS script can get info from other patches, ie from an iterator by trying to traverse it with 'this'

Roger Bolton wrote:


someone was asking a while ago about global variable inside javascript in quartz composer,


I noticed someone had posted on the quartzcompositions forums that this is possible,

just use the "this" object e.g

this.foo = 2;

creates a "foo" property with the value 2 on the runtime object, which is kept among executions of the patch

thought this might be of use to people on here...

roger
quartonian.net


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden



This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden
References: 
 >Global variables inside JS (From: Roger Bolton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.