Vizard 7 » Command Index » Vizard objects » effect » <effect>.getTypeName
7.7

<effect>.getTypeName

Return the type name of the effect

<effect>.getTypeName()  

Remarks

This command will return the type name of the effect specified within the definition. If the effect definition does not specify a type, it will default to 'default'.

Return Value

Effect type name

Example

code = """
Effect "MyEffect" {

    Type SetColor

    Shader {
        BEGIN Material
        m.diffuse = vec3(1.0,0.0,0.0);
        END
    }
}
"""
effect = viz.addEffect(code)

# Will print out 'SetColor'
print(effect.getTypeName())

See also

<effect>.getName