maxon.Struct

Description

Represents a C++ structure.

Warning

This function is only there to expose a C++ Object to Python.
As a Python developer you normally don’t have to deal with this function.

Methods Signature

__dir__()

Returns a list of all the attributes names of the current instance including the member names for the underlying structure type.

__getattribute__(name)

Returns the attribute value stored under the given name.

__setattr__(name, value)

Stores the given value under the given attribute name if it exists.

Methods Definition

Struct.__dir__()

Returns a list of all the attributes names of the current instance including the member names for the underlying structure type.

Returns

The list of all attributes names.

Return type

list[str]

Struct.__getattribute__(name)

Returns the attribute value stored under the given name.

Parameters

name (str) – The name of the attribute.

Returns

The resolved attribute or raise AttributeError if the given name can’t be found.

Return type

Any

Struct.__setattr__(name, value)

Stores the given value under the given attribute name if it exists.

Parameters
  • name (str) – The name of the attribute.

  • value (maxon.Data) – The value we want to assign to the attribute.