Hi,
I get models with difference colours, now I like to check how many difference colours are inside the model.
With the command "EDIT SELECTION SMART NO FORM MODELSELECT", I can see all colours,
but:
1. is it possible to get the numbers of difference colours, like $Number = size(Smart Form)?
2. can I get the RGB code from each colours what I can see inside the form?
Cheers
Ulli
what you mean by:
1. is it possible to get the numbers of difference colours, like $Number = size(Smart Form)?
2nd:
EDIT SELECTION SMART NO FORM MODELSELECT
int $num = list_num_rows('ModelSelect.List')
int $index = 0
string $msg = ""
while $index < $num {
EDIT SELECTION MODEL STORE ${index} NEW
string $rgb = widget('ModelSelect.Name').Value
$msg = $msg + $rgb + CRLF
$index = $index + 1
}
message info $msg
there are ~16,58million combinations of rgb values... i dont think theres a name for every color 😛
I probably can write a algorythm that gets the color that comes the closest to the given rgb value if you like
if I select the colour manual, I can see the name at the right side of form,
my idea will be, to catch this name.
Can't find what you're looking for? Ask the community or share your knowledge.