Help with colorcorrection class

Hi all,

I'm need a help with color correction, in my development script for example I have

 if meditMaterials[5].texmap_diffuse == Color_correction then ( print "ok" ) else ( print "not ok" )

But this has not worked, I tried Color_correction colorCorrection Color correction, and nothing has worked, do not know if I need to take for some class / superclass ...

ps. I use the Vray (.texmap_diffuse)

if someone can help ...

thanks in advanced...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

Use this

Use this

if isKindof meditMaterials[5].texmap_diffuse Color_Correction then "ok" else "not ok"
--or
if classof meditMaterials[5].texmap_diffuse == Color_Correction then "ok" else "not ok"
--or
if getclassname meditMaterials[5].texmap_diffuse == "Color Correction" then "ok" else "not ok"

barigazy

kimarotta's picture

hey Barigazy, very good...

hey Barigazy, very good... thanks man...

kimarotta.com.br
3d Artist  

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.