VIDVOX Forums Forum Index
Author Message
<  Quartz Composer  ~  Creating "Structures" in QC ?
brettm
PostPosted: Sat May 23, 2009 5:34 am  Reply with quote



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?
Back to top
View user's profile Send private message
goto10
PostPosted: Sat May 23, 2009 12:24 pm  Reply with quote
Video Architect


Joined: 01 Jun 2008
Posts: 317
Location: Amsterdam, The Netherlands

hey brettm

one of the ways to create a structure is to use the queue patch. this makes a single list structure of whatever data type you feed into it.

for more complex structures, you could look into kineme's structure tools: http://kineme.net/QuartzComposerPatches/StructureTools/0.1

good luck and have fun

joris

_________________
if it moves, sync it!
http://www.hybridvisuals.nl/
Quartz Composer and VDMX video tutorials at http://www.hybridvisuals.nl/tutorials
Back to top
View user's profile Send private message Visit poster's website
dlublin
PostPosted: Sat May 23, 2009 5:39 pm  Reply with quote
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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brettm
PostPosted: Sun May 24, 2009 8:56 pm  Reply with quote



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.
Back to top
View user's profile Send private message
the_voder
PostPosted: Sun May 24, 2009 9:46 pm  Reply with quote
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
All times are GMT

View next topic
View previous topic
Page 1 of 1
VIDVOX Forums Forum Index  ~  Quartz Composer

Post new topic   Reply to topic


 
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB and NoseBleed v1.09