Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting: Access Terrain Properties #3900

Open
eishiya opened this issue Mar 3, 2024 · 0 comments
Open

Scripting: Access Terrain Properties #3900

eishiya opened this issue Mar 3, 2024 · 0 comments
Labels
feature It's a feature, not a bug.

Comments

@eishiya
Copy link
Contributor

eishiya commented Mar 3, 2024

Unless it's just not documented, scripting appears to have no way to access the properties set on a Terrain, only those on a Terrain Set (WangSet). WangSet.colorName(index) and WangSet.setColorName(index, name) provide a way to interact with the Terrain name, but there seems to be no way to get/set the display colour and custom properties for a given Terrain.

This means Terrain custom properties can't be used to affect script behaviour (e.g. I can't make a custom Terrain tool that only modifies specific Terrains based on their custom properties), and scripts can't copy Terrains fully (for e.g. importing terrains to a metatileset, or writing out to a custom format).

@eishiya eishiya added the feature It's a feature, not a bug. label Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

1 participant