10
Jul
08

Controls Structures Demo QTZ

Just a really simple JavaScript patch and a macro showing how to combine multiple controls into a single structure, and then extract them back into discrete values again. I know I’ve banged on about this several times before, but the QTZ might just save someone some time.

You can probably get away with sticking the JS patch in a macro, and changing the names of the published ports for the input controls to something that makes more sense for your project, and it’ll still work. You could do the same for the published output ports of the ‘Controls From Struct’ macro. If you need more than 5 controls, you’ll have to edit the JS itself, but it’s pretty self-explanatory really. You’ll also need to add more Structure Key Member patches in Controls From Struct, and set the correct keys.

I’m sure it would be possible to eliminate the Structure Key Member patches and do the whole thing in another JavaScript patch, but the current method seems to work fine. Maybe I’ll tackle that at some point in the future.

About these ads

0 Responses to “Controls Structures Demo QTZ”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Twitter

Error: Twitter did not respond. Please wait a few minutes and refresh this page.

July 2008
M T W T F S S
« Jun   Aug »
 123456
78910111213
14151617181920
21222324252627
28293031  

Links

Blog Stats

  • 397,512 hits

Follow

Get every new post delivered to your Inbox.

Join 35 other followers

%d bloggers like this: