ScriptSpot

Forum topic · General Scripting

Help with colorcorrection class

By kimarotta · 2012-07-02

Description

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 (2)

barigazy · 2012-07-02

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"

kimarotta · 2012-07-02

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