PDA

View Full Version : Documentation of Painter scripts


klingspor
06-08-2005, 12:27 PM
Hello,

I'm about to write a little program that works with Painter's scripts like this one: script_version_number version 9
artist_name ""
start_time date Thu, 8. Jun 2005 time 13:16
start_random 1813062 1282963729
variant "Painter Brushes" "Artists' Oils" "Soft Blender Brush"
penetration_slider 0 percent
texture "Paper Textures" "Basic Paper"
grain_inverted unchecked
directional_grain unchecked
scale_slider 1.00000
paper_brightness_slider 0.50000
paper_contrast_slider 1.00000
portfolio_change "Painter Portfolio"
gradation "Painter Presets" "Two-Point"
weaving "Painter Presets" "Bright"
pattern_change "Painter Patterns" "Hens & Chicks"
path_library_change "Painter Selections"
nozzle_change "Painter Nozzles" "Bay Leaves"
use_brush_grid unchecked
new_tool 1
gradation_options type 0 order 0 angle 0.00 spirality 1.000
pattern_options pattern_type 1 offset 0.594
preserve_transparency unchecked
wind_direction 4.712389
color red 255 green 72 blue 1
background_color red 255 green 255 blue 255
stroke_start
pnt x 458.25 y 252.76 time 48282 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 454.10 y 252.76 time 48386 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 448.10 y 252.76 time 48394 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 439.61 y 252.76 time 48402 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
stroke_end
end_time date Thu, 8. Jun 2005 time 13:16


Unfortunately, there doesn't seem to much documentation on what exactly these different commands do. Before I go reverse engineering the whole thing, I'd just like to ask whether perhaps someone here knows where I could find some documentation on the format. The docs delivered with Painter don't offer much information at all.

Thanks,
Stefan

DigArts
06-08-2005, 07:25 PM
Don't know that any documentation exists in the public domain Steffan. Tom Hedges would likely have some, if there is any.

You'll note that when you uncheck the Record Initial State checkbox in Script Options, most of this stuff disappears.

portfolio_change "Painter Portfolio"
gradation "Painter Presets" "Two-Point"
weaving "Painter Presets" "Bright"
pattern_change "Painter Patterns" "Hens & Chicks"
path_library_change "Painter Selections"
nozzle_change "Painter Nozzles" "Bay Leaves"

If you want your script to be portable to other machines/users, I suggest removing these preset requirements. As for the stroke code, that's mostly canvas, pressure, angle and other pen/canvas geometry. I'm not sure it's worth the effort to try to program it, other than cutting and pasting sections from script recordings anyway.

I like your treatement of the trees and foliage in the Bisquit screen grabs.

Dennis@DigArts
http://www.gardenhose.com (http://www.gardenhose.com/)



Hello,

I'm about to write a little program that works with Painter's scripts like this one: script_version_number version 9
artist_name ""
start_time date Thu, 8. Jun 2005 time 13:16
start_random 1813062 1282963729
variant "Painter Brushes" "Artists' Oils" "Soft Blender Brush"
penetration_slider 0 percent
texture "Paper Textures" "Basic Paper"
grain_inverted unchecked
directional_grain unchecked
scale_slider 1.00000
paper_brightness_slider 0.50000
paper_contrast_slider 1.00000
portfolio_change "Painter Portfolio"
gradation "Painter Presets" "Two-Point"
weaving "Painter Presets" "Bright"
pattern_change "Painter Patterns" "Hens & Chicks"
path_library_change "Painter Selections"
nozzle_change "Painter Nozzles" "Bay Leaves"
use_brush_grid unchecked
new_tool 1
gradation_options type 0 order 0 angle 0.00 spirality 1.000
pattern_options pattern_type 1 offset 0.594
preserve_transparency unchecked
wind_direction 4.712389
color red 255 green 72 blue 1
background_color red 255 green 255 blue 255
stroke_start
pnt x 458.25 y 252.76 time 48282 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 454.10 y 252.76 time 48386 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 448.10 y 252.76 time 48394 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
pnt x 439.61 y 252.76 time 48402 prs 1.00 tlt 0.50 brg 0.25 whl 1.00 rot 0.00
stroke_end
end_time date Thu, 8. Jun 2005 time 13:16


Unfortunately, there doesn't seem to much documentation on what exactly these different commands do. Before I go reverse engineering the whole thing, I'd just like to ask whether perhaps someone here knows where I could find some documentation on the format. The docs delivered with Painter don't offer much information at all.

Thanks,
Stefan

klingspor
06-09-2005, 12:43 PM
Someone at Corel was nice enough to send me a PDF (Painter Tech Note #1 by Mark Zimmer) containing all the information I could have wanted. The format is pretty well documented, after all!

DigArts
06-09-2005, 04:43 PM
Someone at Corel was nice enough to send me a PDF (Painter Tech Note #1 by Mark Zimmer) containing all the information I could have wanted. The format is pretty well documented, after all!

Hey, that's more than Corel ever did for me (by a long shot), and I've probably sold more copies of Painter for them than any other third party developer. Kudos Stefan :)

CGTalk Moderation
06-09-2005, 04:43 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.