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: JavaScript Patch Names Inputs and Outputs



Hi all,

I notice that converting tiger Javascript patches to Leopard (after rewriting to the function 'main' format) act strange, yielding script errors when re-written to QC3. I copy scripts into new Javascript patches and they work with no errors. QC3 bug?

Dave C.


-----Original Message-----
From: quartzcomposer-dev-bounces+dcorreia=email@hidden on behalf of email@hidden
Sent: Tue 11/20/2007 5:38 PM
To: email@hidden
Subject: Quartzcomposer-dev Digest, Vol 33, Issue 53
 
Send Quartzcomposer-dev mailing list submissions to
	email@hidden

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.apple.com/mailman/listinfo/quartzcomposer-dev
or, via email, send a message with subject or body 'help' to
	email@hidden

You can reach the person managing the list at
	email@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quartzcomposer-dev digest..."


Today's Topics:

   1. Re: Slow Performance in Leopard (Ricardo Silva)
   2. Re: Slow Performance in Leopard (Patrick Sheffield)
   3. Re: Slow Performance in Leopard (Ricardo Silva)
   4. JavaScript Patch Names Inputs and Outputs (Alex Drinkwater)
   5. Re: JavaScript Patch Names Inputs and Outputs (Karan Lyons)


----------------------------------------------------------------------

Message: 1
Date: Tue, 20 Nov 2007 12:00:42 -0800
From: Ricardo Silva <email@hidden>
Subject: Re: Slow Performance in Leopard
To: email@hidden
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

Yes marco. I have sent messages to the list and getting no feedback  
regarding the same situation.

I have experienced similar situation where the frame playback drops to  
4 or 6 fps, but in tiger it was running at 60fps.

I also have some comps where the interactivity inside QC becomes a  
frustration because I have to wait until QC decides to let me do the  
next move.

Also, I have noticed that inside QC I can do a "Tiger runtime" test,  
and then the composition seems to play more fluid, but when I am  
adjusting or editing the comp, it is very slow to the point that I  
need to restart the application and then it becomes "just a little bit  
faster"

             - - - - - - - - - -
             :
             Ricardo Silva
             email@hidden
             :
             =======================


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/quartzcomposer-dev/attachments/20071120/126f889f/attachment.html

------------------------------

Message: 2
Date: Tue, 20 Nov 2007 12:14:40 -0800
From: Patrick Sheffield <email@hidden>
Subject: Re: Slow Performance in Leopard
To: Ricardo Silva <email@hidden>
Cc: email@hidden, email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

Can I ask what graphics card you're running?

Patrick

On Nov 20, 2007, at 12:00 PM, Ricardo Silva wrote:

> Yes marco. I have sent messages to the list and getting no feedback  
> regarding the same situation.
>
> I have experienced similar situation where the frame playback drops  
> to 4 or 6 fps, but in tiger it was running at 60fps.
>
> I also have some comps where the interactivity inside QC becomes a  
> frustration because I have to wait until QC decides to let me do  
> the next move.
>
> Also, I have noticed that inside QC I can do a "Tiger runtime"  
> test, and then the composition seems to play more fluid, but when I  
> am adjusting or editing the comp, it is very slow to the point that  
> I need to restart the application and then it becomes "just a  
> little bit faster"
>
>             - - - - - - - - - -
>             :
>             Ricardo Silva
>             email@hidden
>             :
>             =======================
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Quartzcomposer-dev mailing list      (Quartzcomposer- 
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/quartzcomposer-dev/psheffield 
> %40earthlink.net
>
> This email sent to email@hidden

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/quartzcomposer-dev/attachments/20071120/d2943e95/attachment.html

------------------------------

Message: 3
Date: Tue, 20 Nov 2007 13:24:50 -0800
From: Ricardo Silva <email@hidden>
Subject: Re: Slow Performance in Leopard
To: Patrick Sheffield <email@hidden>
Cc: email@hidden, email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

Sure: I have a G5 dual 2Ghz with the standard card with 256 MB. (ATI)

             - - - - - - - - - -
             :
             Ricardo Silva
             =======================


On Nov 20, 2007, at 12:14 PM, Patrick Sheffield wrote:

> Can I ask what graphics card you're running?
>
> Patrick
>
> On Nov 20, 2007, at 12:00 PM, Ricardo Silva wrote:
>
>> Yes marco. I have sent messages to the list and getting no feedback  
>> regarding the same situation.
>>
>> I have experienced similar situation where the frame playback drops  
>> to 4 or 6 fps, but in tiger it was running at 60fps.
>>
>> I also have some comps where the interactivity inside QC becomes a  
>> frustration because I have to wait until QC decides to let me do  
>> the next move.
>>
>> Also, I have noticed that inside QC I can do a "Tiger runtime"  
>> test, and then the composition seems to play more fluid, but when I  
>> am adjusting or editing the comp, it is very slow to the point that  
>> I need to restart the application and then it becomes "just a  
>> little bit faster"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/quartzcomposer-dev/attachments/20071120/8d0f3ce9/attachment.html

------------------------------

Message: 4
Date: Tue, 20 Nov 2007 22:21:26 +0000 (GMT)
From: Alex Drinkwater <email@hidden>
Subject: JavaScript Patch Names Inputs and Outputs
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=iso-8859-1

Is it possible to have more than one named output from
a JavaScript module? I can name the inputs without
difficulty, but if I attempt to define more than one
named output, I get errors.

I notice in the Developer Examples folder, example
compositions using the JavaScript patch either have a
single named output, or multiple un-named ones. Is
this a bug or a feature?

The following code:

function (__number input1) main (__number UnitHeight,
__number UnitWidth, __number PixelHeight, __number
PixelWidth)
{
	var result = new Object();


	return result;
}

gives the following error message, and  an error
message at the bottom of the editor window saying
Incorrect or missing "main" function'

- - - - - - - - - - - - - - - - - - - - - - - - - - - 

0x00387c82: GFException
0x003898c5: GFThrowException
0x002dbf57: -[GFNode
createInputPortWithArguments:forKey:]
0x002dbd9a: -[QCPatch(Override)
createInputPortWithArguments:forKey:]
0x002debef: -[QCPatch(Wrappers)
createInputWithPortClass:forKey:attributes:arguments:order:]
0x002deb46: -[QCPatch(Wrappers)
createInputWithPortClass:forKey:attributes:]
0x002e901f: -[QCProgrammablePatch
_updateTypes:ports:list:direction:]
0x002e8b6b: -[QCProgrammablePatch setParameterList:]
0x1e5582d2
0x1e555c85
0x002e566c: -[QCProgrammablePatch
recompileSourceOfType:]
0x003d39ca: -[QCProgrammablePatch
setValue:forUndefinedKey:]
0x01e41ac8: _NSSetUsingKeyValueSetter
0x01e4152e: -[NSObject(NSKeyValueCoding)
setValue:forKey:]
0x002e4965: -[QCPatch(StateKeys)
setValue:forStateKey:]
0x003c6d70: -[QCProgrammablePatchView _updateSource:]
0x01e54663: __NSFireTimer
0x00f25b7e: CFRunLoopRunSpecific
0x00f25d38: CFRunLoopRunInMode
0x037608a4: RunCurrentEventLoopInMode
0x037606bd: ReceiveNextEventCommon
0x03760531: BlockUntilNextEventMatchingListInMode
0x0111dd5b: _DPSNextEvent
0x0111d6a0: -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
0x011166d1: -[NSApplication run]

- - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - 

Any further attempts to edit the code results in the
reappearance of the above error. Oddly, the output
ports all show up, named as specified, but the input
port does not appear.

Anyone any thoughts on how to get this to work? 


alx
http://www.toneburst.net


      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html


------------------------------

Message: 5
Date: Tue, 20 Nov 2007 17:36:48 -0500
From: Karan Lyons <email@hidden>
Subject: Re: JavaScript Patch Names Inputs and Outputs
To: Alex Drinkwater <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"

	There is one solution, which is using the old javascript patch. The  
support for it is still there, you just need to have an old  
composition that still has the patch in it. Attached is such a  
composition. Hope it helps!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Old Javascript.qtz
Type: application/x-quartzcomposer
Size: 683 bytes
Desc: not available
Url : http://lists.apple.com/pipermail/quartzcomposer-dev/attachments/20071120/78ab343f/OldJavascript.bin
-------------- next part --------------

Namaste,
Karan
Karan "The Architect" Lyons: Web Design & Development at Geek  
Ramblings | Student | Omnigeek
contact | email: email@hidden| cell: 857-544-9527 | skype:  
taoofkaran | aim: taoofkaran



On Nov 20, 2007, at 5:21 PM, Alex Drinkwater wrote:

> Is it possible to have more than one named output from
> a JavaScript module? I can name the inputs without
> difficulty, but if I attempt to define more than one
> named output, I get errors.
>
> I notice in the Developer Examples folder, example
> compositions using the JavaScript patch either have a
> single named output, or multiple un-named ones. Is
> this a bug or a feature?
>
> The following code:
>
> function (__number input1) main (__number UnitHeight,
> __number UnitWidth, __number PixelHeight, __number
> PixelWidth)
> {
> 	var result = new Object();
>
>
> 	return result;
> }
>
> gives the following error message, and  an error
> message at the bottom of the editor window saying
> Incorrect or missing "main" function'
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> 0x00387c82: GFException
> 0x003898c5: GFThrowException
> 0x002dbf57: -[GFNode
> createInputPortWithArguments:forKey:]
> 0x002dbd9a: -[QCPatch(Override)
> createInputPortWithArguments:forKey:]
> 0x002debef: -[QCPatch(Wrappers)
> createInputWithPortClass:forKey:attributes:arguments:order:]
> 0x002deb46: -[QCPatch(Wrappers)
> createInputWithPortClass:forKey:attributes:]
> 0x002e901f: -[QCProgrammablePatch
> _updateTypes:ports:list:direction:]
> 0x002e8b6b: -[QCProgrammablePatch setParameterList:]
> 0x1e5582d2
> 0x1e555c85
> 0x002e566c: -[QCProgrammablePatch
> recompileSourceOfType:]
> 0x003d39ca: -[QCProgrammablePatch
> setValue:forUndefinedKey:]
> 0x01e41ac8: _NSSetUsingKeyValueSetter
> 0x01e4152e: -[NSObject(NSKeyValueCoding)
> setValue:forKey:]
> 0x002e4965: -[QCPatch(StateKeys)
> setValue:forStateKey:]
> 0x003c6d70: -[QCProgrammablePatchView _updateSource:]
> 0x01e54663: __NSFireTimer
> 0x00f25b7e: CFRunLoopRunSpecific
> 0x00f25d38: CFRunLoopRunInMode
> 0x037608a4: RunCurrentEventLoopInMode
> 0x037606bd: ReceiveNextEventCommon
> 0x03760531: BlockUntilNextEventMatchingListInMode
> 0x0111dd5b: _DPSNextEvent
> 0x0111d6a0: -[NSApplication
> nextEventMatchingMask:untilDate:inMode:dequeue:]
> 0x011166d1: -[NSApplication run]
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - -
>
> Any further attempts to edit the code results in the
> reappearance of the above error. Oddly, the output
> ports all show up, named as specified, but the input
> port does not appear.
>
> Anyone any thoughts on how to get this to work?
>
>
> alx
> http://www.toneburst.net
>
>
>      ___________________________________________________________
> Want ideas for reducing your carbon footprint? Visit Yahoo! For  
> Good  http://uk.promotions.yahoo.com/forgood/environment.html
> _______________________________________________
> 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


------------------------------

_______________________________________________
Quartzcomposer-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/quartzcomposer-dev


End of Quartzcomposer-dev Digest, Vol 33, Issue 53
**************************************************

<<winmail.dat>>

 _______________________________________________
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.