AttributeShader

class guerilla.AttributeShader

Bases: guerilla.Node

An attribute subshader node

This node is used to assign a utility subshader such as a texture lookup

as an arbitrary object attribute or shader parameter.

overrideinheritedattr(attrname, value)

Overrides an attribute by its name, if the plug doesn’t exist, it is created.

If the attribute name is not known as a valid shader parameter, the attribute is not created

Parameters:
  • attrname (str) – The attribute name to override
  • value (any) – The attribute value to override
Returns:

the attribute plug

Return type:

Plug