ANN: Quartz Composition Filters in Revolution for OSX

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Location: Bethel Park, Pittsbrugh, Pennsylvania USA
Contact:

ANN: Quartz Composition Filters in Revolution for OSX

Post by mcgrath3 » Fri May 09, 2008 1:25 pm

Dear Revolution Users,

Since I could not make it to RunRevLive this year I thought I would contribute a stack to the community from here in Pittsburgh, PA.

Announcement: Revolution Quartz Composition Filter Access released to the Revolution community absolutely free for use. This stack and associated files will use the Quartz Composition Filters available from OSX from within the Revolution environment for use in the IDE and standalone applications.

Either use the sample graphic supplied or open your own image and apply as many of the available filters to it and then save the image to where ever you like.

There are 43 high end filters included in this demonstration stack. This is a fun stack to play with.

The Quartz access files are about 18 MB in size so the folder is zipped for easier download.

Download here: http://www.lazyriversoftware.com/QuartzRR.html


Enjoy,

Thomas J McGrath III
Lazy River Software

3mcgrath@comcast.net

Lazy River Software - http://www.lazyriversoftware.com
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

mcgrath3
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 149
Joined: Thu Feb 23, 2006 8:49 pm
Location: Bethel Park, Pittsbrugh, Pennsylvania USA
Contact:

Post by mcgrath3 » Fri May 09, 2008 1:26 pm

It turns out there is a way to script some aspects of the Quartz Composition FIlters. It is a round about way and does not allow any further control than what I did so I don't think I will redo the demo stack just yet.

For instance if the QuartzComposer has a filter Glow and it has a range of 0 - 1 I can't figure out how to change the range, just the filter.

But here is the script:

tell application "Automator"
activate
set myWorkflow to make new workflow
--
set myAction1 to Automator action "Find Finder Items"
tell myAction1 to set value of setting "where" to "User"
-- Can't set the file to find via script...

add myAction1 to myWorkflow
--
set myAction2 to Automator action "Apply Quartz Composition Filter to Image Files"
add myAction2 to myWorkflow
set myNewSetting to last Automator action of myWorkflow

set value of setting "filterIdentifier" of myNewSetting to "Glow"

-- comment the following to just test
execute myWorkflow
close myWorkflow without saving
end tell

This line will get the setting that can be changed for the action:
set myActions to the settings of Automator action "Apply Quartz Composition Filter to Image Files"

result: {setting "filterIdentifier" of Automator action id "com.apple.QuartzComposer.automatorActions.imageFilter" of application "Automator"}

Now, if someone knows a way to change the actual other setting for the Setting of the Action then we can get somewhere in Rev with this.


Tom McGrath, (Not at RunRevLive)
Tom McGrath III
Lazy River Software
3mcgrath@comcast.net

Post Reply

Return to “Mac OS”