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: string to number



Chris,

You must be right because now it's working perfectly.  I never thought
of checking that.  You legend!  You made my day.  Make that my week,
actually.  By the way I love your website and the work you do.  Those
kineme patches are deadly.  And it's so great that you all are so
helpful -  I've already emailed Steve Mokris from the website about
this project on a different but related problem and he was so nice and
helpful too!!

Thanks again,

And thanks Ian (your website is inspirational too!)


Regards,

Jacqui



On 7/24/07, Chris Wright <email@hidden> wrote:
> I tried the javascript and doing parseInt: outputs[0] = parseInt(inputs[0]);
> But it doesn't even transmit my value to the javascript patch input.  In ust
> get
>
> I did try having all the types of thepatches set to virtual - meant to
> transmit any type of value, but obviously not to interface between 2
> different types.

Without dealing with type setting, I didn't have any problems using
javascript to convert a string to an int.  See the attached composition
for a sample.

Perhaps you don't have it hooked up to a renderer, so it isn't getting
executed?  QC is pretty clever about skipping parts that don't have any
effect on a composition.

Hope this helps!

--
[ chris wright ]
email@hidden
http://softpixel.com/~cwright/

_______________________________________________
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: 
 >string to number (From: "jacqui galvin" <email@hidden>)
 >Re: string to number (From: "jacqui galvin" <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.