Mouse Trap (Composition by dust)

Author: dust
License: (unknown)
Date: 2011.03.11
Compatibility: 10.4, 10.5, 10.6
Categories:
Required plugins:
(none)

the plugin is called mouse mover it shows up your library as mouse trap.

input_x and input_y need to be in pixels. left button down and up should be pulsed in etc..

use this plugin at your own risk.

PreviewAttachmentSize
MouseMover.plugin.zip8.15 KB

photonal's picture
Re: Mouse Trap (Composition by dust)

Maybe your plugin should be called 'MinorityReportUIPlugin' ;-)

dust's picture
Re: Mouse Trap (Composition by dust)

its funny years before minority report ever came out there where a few hundred people at 20th century fox making designs for what dc would look like in 2050. some crazy designs. none of the guys wanted to go see the matrix which was out at this time.

well dc really hasn't changed in 200 years so in 40 years its not going to look any different than it does now. just fancy computers and transpo. its kind of too bad because there where some guys making some awesome designs including myself.

cybero's picture
Re: Mouse Trap (Composition by dust)

It's a no-show in either 32 or 64 bit for me; does it require a connected Kinect device? It looks pretty slick.

dust's picture
Re: Mouse Trap (Composition by dust)

it should be both 32 and 64 bit universal. no need for the kinect, that is just an example of a use. i will post the source when i get back to my computer. i usually build for my machine. will also download and test on a clean machine; sorry for the issues cybero

cybero's picture
Re: Mouse Trap (Composition by dust)

I'm going to go for a clean re-install of the plugin as I did find it burped up about the mesh writer / xml plugin, which issue I have finally resolved in regrds of that plugin, might give this another go in due course :-)

benoitlahoz's picture
Re: Mouse Trap (Composition by dust)

Great job dust !

I can't see the plugin en QC, but I guess you manage to track blobs. I would be very interested to see your code :-)

Cheers.

Ben

ahoeben's picture
Re: Mouse Trap (Composition by dust)

Sounds useful, but it is not loading for me either. The console tells me the following:

Quartz Composer[245] *** QCPlugIn: Cannot preflight plug-in at path "/Users/Aldo/Library/Graphics/Quartz Composer Plug-Ins/MouseMover.plugin"

3/12/11 5:34:19 PM   Quartz Composer[245]   *** QCPlugIn: Cannot preflight plug-in at path "/Users/Aldo/Library/Graphics/Quartz Composer Plug-Ins/MouseMover.plugin" 
(Error Domain=NSCocoaErrorDomain Code=3587 UserInfo=0x16827b50 "The bundle “MouseMover” couldn’t be loaded because it is damaged or missing necessary resources." 
(dlopen_preflight(/Users/Aldo/Library/Graphics/Quartz Composer Plug-Ins/MouseMover.plugin/Contents/MacOS/MouseMover): 
Library not loaded: @executable_path/../Frameworks/Cg.framework/Cg
 
Referenced from: /Users/Aldo/Library/Graphics/Quartz Composer Plug-Ins/MouseMover.plugin/Contents/MacOS/MouseMover
 
Reason: image not found))

It looks like we need Cg.framework (though I wonder why we would need it to move the mousepointer around).

Update: The plugin works, after installing Cg.framework from http://developer.nvidia.com/object/cg_download.html I think it should be possible though for Dust to compile a version of the plugin which does not have a dependency on Cg.

ahoeben's picture
Re: Mouse Trap (Composition by dust)

NB: All the plugin does (is meant to do) is set the mouse position and perform mousebutton "clicks". The tracking you see in the demo is done using the Kinect plugin and QC-based blob tracking. The mouse trap plugin is just the "consumer" of the tracked data.

benoitlahoz's picture
Re: Mouse Trap (Composition by dust)

Yes, it seems to work when the Cg framework is installed.

dust's picture
Re: Mouse Trap (Composition by dust)

sorry i haven't got back to you guys my kid got me sick so i have been asked out for a few days. so glad to see that @ahoeben did some investigation. i added the cg.framework thinking it would solve dependancies issues not cause them, my bad.

quartz events are located in application services frameworks. this being a quartz plug there is no need to add a framework to get quartz events to work i suppose. i went ahead and added application services anyways and took out the cg.framework which subsequently wasn't the framework i was trying to add.

this should work now. remember to use at your own risk. don't come crying to me when you don't pulse a mouse click and get trapped into quartz clicking the mouse on every execution. very hard to get out of. i will put a proper dev example together with how to use this.

sorry honest mistake added the nvidia cg framework instead of xcode's ;(

PreviewAttachmentSize
MouseMover.plugin.zip6.04 KB