Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
71 user(s) are online (55 user(s) are browsing Forums)

Members: 0
Guests: 71

more...

Headlines






Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
Is anyone familiar with Art Effect's arexx commands, specifically TEXT?

I am working on a script and I'm not getting much luck with it. None of the example scripts feature it.

Does anyone have any examples on how to use the TEXT command?

Thanks.

   Report Go to top

Re: Art Effect Arexx?
Just can't stay away
Joined:
2006/11/24 18:52
From Gloucestershire, UK.
Posts: 1172
Are you using the strength and mode settings properly?

stength = opacity - 0 to 100

mode iis more complicted, you cn use 17 different options...

matte, color, impressionist, multiply, screen, difference, lighten, darken, hue, saturation, huesat, luminance, smooth, blur, sharpen1, sharpen2 and stencil

eg.

TEXT 50,50,FONT "dejavu sans.font", SIZE 24,PLAIN, MODE MATTE, STRENGTH 75,"Testing, Testing, Testing."

_________________
Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
I don't know what is "proper", that is the problem.

I have adapted your line:

TEXT 10, 10, FONT "dejavu sans.font", SIZE 18, PLAIN, MODE MATTE, STRENGTH 80, "Testing, Testing, Testing."

but this does absolutely nothing.

   Report Go to top

Re: Art Effect Arexx?
Home away from home
Joined:
2006/12/4 23:15
Posts: 2298
@daveyw

Try putting single quotes round the whole string

'TEXT 10, 10, FONT "dejavu sans.font", SIZE 18, PLAIN, MODE MATTE, STRENGTH 80, "Testing, Testing, Testing."'


This is needed as Rexx will merge all those string inot the c9ommand and drop the double quotes in dong so, but ArtEffect will need them to parse the command.


_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
@broadblues

Thanks, but no, that still does nothing.

Art Effect is able to correctly execute other commands with quotes without the need to enclose them with ' ', such as:

New w 1200 H 140 fill white name "Text demo"

   Report Go to top

Re: Art Effect Arexx?
Home away from home
Joined:
2006/12/4 23:15
Posts: 2298
@daveyw
Well the most obvious difference between the command that works and the one that doesn't is the commas..

_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
@broadblues

Yep, tried that, no result.

   Report Go to top

Re: Art Effect Arexx?
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1272
@daveyw

What if you put the whole command into a variable and do "address ArtEffect <var>"? Do a "say" of the variable in the previous line to check the contents, especially wrt quotes etc.

Best regards,

Niels

   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
@nbache

Hmmm.... there's no console, so I tried putting the variable in a requestor.

http://imgbox.com/11wmVa2G

Can't see anything obviously wrong but then I don't know what I'm looking for.

   Report Go to top

Re: Art Effect Arexx?
Just can't stay away
Joined:
2006/11/24 18:52
From Gloucestershire, UK.
Posts: 1172
This is from the docs:

I added the commas as they're in the template

TEXT

Synopsis
Paints a text to the project using a specified font and size.

Parameters Template
X/N/A, Y/N/A, FONT/K, SIZE/N/K, PLAIN/K, BOLD/S, ITALIC/S, UNDERLINE/S, NOBOLD/S,
NOITALIC/S, NOUNDERLINE, MODE/K, STRENGTH=STR/K/N, TEXT/K/F

Parameters
X/N/A
X-coordinate of the top left corner of the text.

Y/N/A
Y-coordinate of the top left corner of the text.

FONT/K
name of the font to use.

SIZE/N/K
size of the font to use.

PLAIN/K
the text is painted without attributes.

BOLD/S
the text is painted in bold.

ITALIC/S
the text is painted in italics.

UNDERLINE/S
the text is painted underline.

NOBOLD/S
the text is not painted in bold, no matter what your
text-settings are.

NOITALIC/S
the text is not painted in italics, no matter what your
text-settings are.

NOUNDERLINE/S
the text is not painted underlined, no matter what your
text-settings are.

MODE/K
chooses the desired paintmode - look @{"here" link modelist} for a complete list

STRENGTH
sets the desired opacity (0...100)

TEXT/K/F
the text to be written to the project.

_________________
Amiga user since 1985
AOS4, A-EON, IBrowse & Alinea Betatester

Ps. I hate the new amigans website. <shudder>
   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
Thanks, I have the manual. I just can't get the command to produce a result. I've dropped a line to Alinea, although they're closed for the holidays.

For now, I've kinda left it and working on other parts of my script.

   Report Go to top

Re: Art Effect Arexx?
Just popping in
Joined:
2008/10/18 11:25
From Auckland, New Zealand
Posts: 152
Blimey, finally got it!!! This instruction actually works:

text x 10 y 10 font "Courier.font" size 16 plain mode matte str 100 text "Testing, Testing, Testing."


Looks like it just didn't like the DejaVu Sans Condensed font, which is odd, because I can select it with no problems from the front end. I also have to include .font on the end of the name.

Also looks like the formatting options (bold, etc) don't work, and changing str or mode doesn't have any effect.

But I've finally managed to get it to do something...

   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project