Custom Properties Description

When we set up custom properties, we are able to set three characteristics (properties) for each property:


So if I create a custom property with these characteristics:

Name: variable_1
Type: Integer
Description: Valve position

Can I reference the description indirectly? If so, what is its property name? I’ve tried “Description” and that doesn’t work.

The custom property data can be accessed through scripting.

Here is an example. event.source could be any component. The example prints information about each custom property that exists on the component.

for property in event.source.getDynamicProps().values():		
	print "Name:",property.getName()
	print "Description:",property.getShortDescription()
	print "Type:",property.getPropertyType()
	print "Value:",property.getValue()

Thank you, that works great. :thumb_right: