Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
105 user(s) are online (61 user(s) are browsing Forums)

Members: 1
Guests: 104

AMIGASYSTEM, more...

Headlines

 
  Register To Post  

Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
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.

Go to top
Re: Art Effect Arexx?
Just can't stay away
Just can't stay away


See User information
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>
Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
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.

Go to top
Re: Art Effect Arexx?
Home away from home
Home away from home


See User information
@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.


Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
@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"

Go to top
Re: Art Effect Arexx?
Home away from home
Home away from home


See User information
@daveyw
Well the most obvious difference between the command that works and the one that doesn't is the commas..

Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
@broadblues

Yep, tried that, no result.

Go to top
Re: Art Effect Arexx?
Just can't stay away
Just can't stay away


See User information
@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

Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
@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.

Go to top
Re: Art Effect Arexx?
Just can't stay away
Just can't stay away


See User information
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>
Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
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.

Go to top
Re: Art Effect Arexx?
Not too shy to talk
Not too shy to talk


See User information
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...

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project