setmetatag#

ENS_LIGHTSOURCE.setmetatag(tag: str, value: Any | None) None#

Change a value in the METADATA attribute

All ENSOBJ subclasses have a METADATA read only attribute that is viewed as a Python dictionary. A value can be set in that dictionary using this call:

Parameters:
tagstr

The string name of the METADATA tag to add/change.

valueAny, optional

The value to change to tag to. Note: this can be a string, int or float.

Examples

>>> session.ensight.objs.core.PARTS[0].setmetatag("FOO", "HELLO")
>>> print(session.ensight.objs.core.PARTS[0].METADATA)