plugin

Export Xml data

Swiftlikeninja's picture

I am in need of some guidance. I am currently doing some data processing within quartz on various statistic that are being pulled live via xml. The need has risen that requires some of the same data to be imported into excel. Since I am already parsing down an xml structure in quartz, I want to incorporate this data into excel so i dont have to recreate the wheel again.

After all the data parsing I'm left with a named 2d array and am trying to figure out how to get that data back into an excel readable format. I have tried using Dust's amorim xml plugin but it loses the standard xml formatting and as such excel fails to import the data. Namely, it incorporate the keys into separate , . The perfect solution would be a hands off, quartz integrated plugin. Unfortunately I do not have the talent of knowledge to attempt to write the plugin myself.

Any help would be greatly appreciated.

Installing a Quartz Composer Patch in OS X Lion

gtoledo3's picture

I made this quick screen cap of going to kineme's site, downloading GL Tools, loading it in the OS, and reopening QC, to show how to get it to work. Feel free to ask questions if I've breezed through too quickly, or anything isn't apparent.

iniTree - draw your own recursion tree

LukeNeo's picture

Hello there, I just want to share with you a simple that draws a ternary tree. The algorithm is very simple and uses recursion. Here is what it does in pseudocode (for n-ary tree):

  1. main{
  2. max_levels = 10 //the max num of levels
  3. tree(initLenght, 1);
  4. }
  5.  
  6. tree(length, level){
  7. if(level<max_levels){ //is the end of the recursion?
  8. n = 3 //it is a ternary tree
  9. for(x=0; x<n; <++){
  10. pushMatrix()
  11. rotate ((360 / n)*x) along y axis
  12. rotate (aperture) along z axis
  13. drawLine(0,0,0, 0,length,0) //from 0,0,0 to 0,length,0
  14. translate(0,length,0)
  15. tree(lenght/2, level+1) //recursive call
  16. popMatrix()
  17. }
  18. }
  19. }

As you can see, I used glRotate/glTranslate and glBegin(GL_LINES)/glEnd() calls, in old OpenGL style. Maybe this is the reason why with more than 8/9 levels I don't obtain good performance. Using vbo will result in better performance, but I'm still not sure about how to do that.

It is a very simple plugin, but if used in audio-reaction compositions I think it can produce interesting results. So let me know if someone use it in some cool way! :)

Download(plugin and example composition)

Structure from file suggestion

Swiftlikeninja's picture

So while working with a couple different means of data managing across multiple machines (30+ locally, on the same network.) We've decided to set up a single mac as a webserver and have that mac pull all the various data points from different locations and funnel them down into a single data point for the other mac to pull from via a plist on the webserver using the structure to/from file toolset. Upon doing this I discovered the limitation of only being able to read from a local path in the plugin. I was wondering what anyone thought of a url loader for the structure from file to allow plist loading from url, or how hard it would be to implement. I know the Xml file reader will pull the plist off the webserver but its not going to work for my particular practices due to the formating of the plist file.

Thanks

S-ninja

QCMeshTools.plugin/QCMeshValidate

gtoledo3's picture

Super simple plugin patch, don't let the main name fool you. Returns a 1 if a valid QCMesh is attached to the input port, a 0 other wise.

http://www.georgetoledo.com/2011/03/qcmeshtoolsqcmeshvalidate.html

It was mainly a test of how to use a QCMesh input to "do stuff", and this seemed like a good square one.