How can I reach a custom property value in Python script

Hello,

In my tileSet, I’ve put a boolean collision attribute, I’m busy to write an exporter in Python based on the example given in the Tiled documentation, but impossible to get this value from the cell or wathever object available.

Is there a specific method into the cell or tileset object ?

thanks

Joël

Hey @joel, welcome to the Tiled forum!

The following methods should be available on everything that can hold custom properties:

To get the properties of a cell you first need to get its tile or tileset:

Thank you very much for the quick answer, it’s actually working fine now thanks to you.
Tiled is really impressive, I’m amazed by the work done.

1 Like