The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > AppleScripting Omni Apps
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Shadow workaround? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Bug: Can't reset shadow to immediately beneath object

Workaround: Create different layers and put the graphics in the right layer such that the shadow is cast on the layer.

set middleLayer to make new layer at end of layers with properties {name:"middleLayer"}
set imageShape to make new shape at end of graphics of middleLayer with properties {draws shadow:true, size:{218, 150}, origin:{25, 28}, thickness:1, shadow vector:{3, -3}}
-- Can't set image directly in a layer
tell imageShape to set {image} to {"/path/to/image.jpg"}

set backLayer to make new layer at end of layers with properties {name:"backLayer"}
set backShape to make new shape at beginning of graphics of backLayer with properties {draws shadow:false, size:{270, 198}, origin:{0, 0}, thickness:0, fill:"linear blend", fill color:{0.576, 0.576, 0.576}, gradient color:{0.18, 0.18, 0.18}, gradient angle:90, gradient center:{-1, -1}}
And now the shadow from the image appears on the background shape.

Issues: You can't put the graphics into a group to manipulate them further, and similar cross-layer issues, but at least they look correct.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need suggestions for tags workaround AEG Colorado OmniFocus 1 for Mac 5 2013-04-24 12:42 PM
New Keychain Behavior in Mac OS X 10.8? [A: bug in 10.8 - see thread for workaround.] chmars OmniFocus 1 for Mac 4 2012-09-26 02:18 PM
Am I on the right track? Tags workaround. Penguin OmniFocus 1 for Mac 13 2010-10-07 03:53 AM
Why do some projects appear dropped? [sync bug with workaround] callekula OmniFocus Syncing 1 2009-07-22 01:38 PM

All times are GMT -8. The time now is 01:30 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.