DTP


 
Lively discussions on the graphic arts and publishing — in print or on the web


Go Back   Desktop Publishing Forum > General Discussions > Print Production & Automation

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 01-29-2005, 04:36 AM   #1
Dave Saunders
Member
 
Dave Saunders's Avatar
 
Join Date: Jan 2005
Posts: 103
Default UI can mislead scripters

When you're scripting something and you can't seem to get it to work, you can often sort things out by examining how the UI handles the kinds of things you're working with.

But this can also mislead you. The UI is not the object model. It is a front-end that is designed to make life easier for the interactive user. So, sometimes the UI does things because it is a program and not because the underlying object model works that way.

The most frequently encountered example of this comes up when working with strokes from a script. The UI links the color and weight, set one and you get the default setting for the other. But this does not happen automaticall when a script sets these properties. When setting strokes from a script, you must set both the weight and the color.

Just set the weight and you'll get an invisible stroke. Similarly, just set the color (swatch), and you'll still have a zero weight but now colored stroke which can result in a hairline on press because some (most?) RIPs impose a minimum weight for colored strokes.

By the way, this tip is scripting language independent.

Dave
Dave Saunders is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Contents copyright 2004–2012 Desktop Publishing Forum and its members.