Isotropix Forums

How to get RGB values from a texturemap?Python

Clarisse Scripting related topics

How to get RGB values from a texturemap?Python

Unread postby Fufu0101 » Wed Oct 23, 2019 3:06 pm

I want to know how to get the rgb values from a texturemap
From the TextureView,i can see :


[b]
UV:[0.153;0.253]
Geomtry....
RGBA:[0.152;0.215;0.265;1.000]HSB:[.....


but how can i get these values in SCRIPTEDITOR by python?


thanks very much!!
Fufu0101
 
Posts: 4
Joined: Wed Oct 23, 2019 2:54 pm

Re: How to get RGB values from a texturemap?Python

Unread postby ayanik » Fri Oct 25, 2019 8:58 am

Not sure if you can with the Clarisse Python API, but you can with an external library such as the Python Imaging Library (PIL).
ayanik
 
Posts: 70
Joined: Wed Nov 26, 2014 9:10 pm

Re: How to get RGB values from a texturemap?Python

Unread postby Fufu0101 » Fri Oct 25, 2019 9:31 am

thx !I already work out this issue but still thx so billet man I still have some questions can’t figure out could I have ur Facebook or some other social platform that can teach me about details thx again :)
my facebook:胡明众
Fufu0101
 
Posts: 4
Joined: Wed Oct 23, 2019 2:54 pm


Return to Scripting