Skip to Content

Attrib Utility

Attribute utility functions.

Quick Facts

PropertyValue
ClassAttribUtility
Modulecenpylib.AttribUtility
Packagecenpylib
ReleaseR2025.2.4
Methods4

Quick Start

# Boilerplate Example attribUtility = ... # obtained from the runtime context result = attribUtility.GetControllerStringAttributeValue(name, controller)

Method Index

MethodReturnsSummary
GetControllerStringAttributeValueGet the value of a user-defined String attribute by name.
GetControllerIntegerAttributeValueGet the value of a user-defined Integer attribute by name.
GetControllerFloatAttributeValueGet the value of a user-defined Float attribute by name.
GetControllerBoolAttributeValueGet the value of a user-defined Bool attribute by name.

Query Methods

GetControllerStringAttributeValue

def GetControllerStringAttributeValue(name, controller)

Get the value of a user-defined String attribute by name.

Parameters:

NameTypeDescription
name
controller

GetControllerIntegerAttributeValue

def GetControllerIntegerAttributeValue(name, controller)

Get the value of a user-defined Integer attribute by name.

Parameters:

NameTypeDescription
name
controller

GetControllerFloatAttributeValue

def GetControllerFloatAttributeValue(name, controller)

Get the value of a user-defined Float attribute by name.

Parameters:

NameTypeDescription
name
controller

GetControllerBoolAttributeValue

def GetControllerBoolAttributeValue(name, controller)

Get the value of a user-defined Bool attribute by name.

Parameters:

NameTypeDescription
name
controller

Version Notes

This class is documented as of release R2025.2.4.

Was this page helpful?