| Author |
Message |
| < Quartz Composer ~ Creating "Structures" in QC ? |
|
Posted:
Sat May 23, 2009 5:34 am
|
|
|
Joined: 22 May 2009
Posts: 5
Location: toronto, canada
|
|
As a programmer new to QC, I'm looking at the patches (in Patch Creator) for purposes of understanding its "data structures", in the code/programming sense; ie. user-defined collections of data, composed of data-elements supported by the language/environment itself; eg. like 'struct' in C/C++
So i see things like Structure Range, Structure Sort, Structure Index Member, etc.
Fine -- these are ways to manipulate Structures that already exist, like the "File List" output of the 'Directory Scanner'
patch.
But: CAN THE USER CREATE THEIR OWN STRUCTURES?
Or am i totally missing something here? |
|
|
|
|
|
 |
|
Posted:
Sat May 23, 2009 12:24 pm
|
|
|
Video Architect
Joined: 01 Jun 2008
Posts: 317
Location: Amsterdam, The Netherlands
|
|
|
|
|
 |
|
Posted:
Sat May 23, 2009 5:39 pm
|
|
|
Vidvoxer
Joined: 30 Mar 2004
Posts: 2505
Location: Troy, NY
|
|
Hey Brett,
Another way to create your own structures is by using the Javascript object.
It is worth noting that adding a js to a patch can increase the overhead (especially if you are constantly changing the inputs), so you'll want to use them sparingly.
- Dave @ VV |
|
|
|
|
|
 |
|
Posted:
Sun May 24, 2009 8:56 pm
|
|
|
Joined: 22 May 2009
Posts: 5
Location: toronto, canada
|
|
I suspected the javascript guy could be persuaded to do something like this! I'll look into it...
Thanks for the input. |
|
|
|
|
|
 |
|
Posted:
Sun May 24, 2009 9:46 pm
|
|
|
Video Architect
Joined: 11 May 2006
Posts: 330
Location: London UK
|
|
I must admit to being a bit of a JavaScript abuser myself. I use the JS patch all the time, I have to say. It can be slow, and unfortunately, one of the situation where it seems to slow down quite dramatically is when it's dealing with large structures. Having said that, if you want to use structures to, say, bundle together several controls so that you can pipe them around in QC without having to connect loads of leads between macros, it can be pretty handy. I did a little demonstration QTZ showing this exact technique once, which you might find useful. It should give you an idea of the general principles at work, even if it doesn't match your needs exactly.
http://machinesdontcare.wordpress.com/2008/07/10/controls-structures-demo-qtz/
a|x |
|
|
|
|
|
 |
|