License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
GDL
About building parametric objects with GDL.

Can I obtain the brightness of a coordinate point on the picture using the REQUEST command?

yongler
Enthusiast

May I ask how to use REQUEST {2}?

Can I obtain the brightness of a coordinate point on the picture using the REQUEST {2} command?

The brightness or red, green, and blue values of the coordinate points on the picture.

 

GDL seems to have relatively weak processing power for pictures.

6 REPLIES 6
Barry Kelly
Moderator

You can request the RGB of a pen or material (surface) as these are a single colour, but not of a picture.

Every pixel of a picture could be a different colour.

Archicad just imports the picture you tell it to, and as far as I know there is no way to interrogate the colour of individual pixels.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
yongler
Enthusiast

Okay, there's still a little disappointment

When you say 'Picture' I assume you are meaning an image file (.jpg, .tif, .png, etc).

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Lingwisyer
Guru

I assume this has got to do with using gradients to control dynamic objects?

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660

You can try to convert the bitmap file to a .txt file that a GDL object can read.

But that means a lot of work. 

- AC-24 FIN - WIN 10 - HP Zbook -
“A winner is just a loser who tried one more time.”
George M. Moore, Jr.
Lingwisyer
Guru

...And very non user friendly...

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660