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: array of floats



Hi James, _javascript_ is the answer, I've used it quite a bit and works fine, you can see an example in use at http://www.memo.tv/webcam_piano (in the iterator, just before the OSC Sender)

but in summary you want to do something like (_javascript_):

function (__structure outputFloats) main (__number float1, __number float2, __number float3)
{
var result = new Object();
result.outputFloats = new Array();
result.outputFloats[0] = float1;
result.outputFloats[1] = float2;
result.outputFloats[2] = float3;
// etc.
return result;
}


Memo (Mehmet S. Akten)

www.memo.tv

email@hidden
+44 (0) 7958 783 832
+44 (0) 20 8123 9986

29 Ironworks
Dace Rd
London E3 2NX, UK


On 25 Jun 2008, at 12:06, James Sheridan wrote:

Hi All,

I'm using an OSC sender inside an iterator and need to be able to send multiple parameters (an id and a value) within one message (to a  supercollidrer OSCResponderNode)

I'm guessing I can do this with the array of floats type on the osc sender node but how do I create  this to pass to it?  I've tried messing around with a _javascript_ patch to no avail

Thanks in advance - James


_______________________________________________
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



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.