Open topic with navigation
<effect>.getTypeName
Return the type name of the effect
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