cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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