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: Creating a Composition in Code



One more tidbit of information: You can turn the files into ASCII XML using command line tool "plutil -convert xml1 [filename]" and edit them in a text editor. QC will also open the ASCII XML files but when you save them, it will turn them back into binary.

On 02.02.2007, at 03:43, Joshua Ballanco wrote:

So, I've had a look, and as Ben has pointed out, the Compositions are indeed binary xml. Their structure is not entirely straight forward, but it would seem simple enough to write some custom code to add elements to an existing template composition. This should suffice for my purposes (basically, adding more spheres/cylinders inside a trackball patch), but it would still be nice to have either an API or at the very least some documentation so that compositions could be created from scratch. I have submitted a feature request (rdar://4971181) summarizing these requirements. Here's hoping that Quartz Composer just keeps getting better and better!

Cheers!

Josh

On Jan 27, 2007, at 5:57 AM, Benjamin Maus wrote:

Hi,

from my guess Quartz Compositions are just binary xml files. You can open them with the Property List Editor. I haven't tried yet to create my own .qtz this way, but if you do, please post your results.

Ben


Am 25.01.2007 um 17:39 schrieb Joshua Ballanco:

Hi,

I tried a search through the mailing list, the dev docs, and on- line, but couldn't find a definitive yes or no, so I thought I'd pose the question to this list:

Is it possible to create a Quartz Composition in code?

I already understand how to publish ports and control a composition in code, but this is not exactly what I'm looking for (though, I suppose with a creative enough composition I could potentially achieve the same results). Basically, I'm looking to use QC as a shortcut for drawing some simple shapes in space and moving them around. The issue is that I'd like to determine how many shapes, their sizes, and their positions at runtime. In other words, I'd like to not have to code the raw GL! ;-)

So, does anyone know if this is possible? Thanks in advance for any help and/or advice!

Cheers,

Josh
_______________________________________________
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/ email@hidden


This email sent to 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/oliver.b% 40gebe.net


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Re: Creating a Composition in Code (From: Joshua Ballanco <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.