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

Closed
eishiya opened this issue Mar 3, 2024 · 1 comment
Closed

Scripting: Access Terrain Properties #3900

eishiya opened this issue Mar 3, 2024 · 1 comment
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).

Edit: There is a similar problem with the imageTile - it can be set for the WangSet, but there's no way to access/set it for a Terrain/WangColor.

@eishiya
Copy link
Contributor Author

eishiya commented Nov 14, 2024

Closing as duplicate of #2663

@eishiya eishiya closed this as completed Nov 14, 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