Skip to content

Comments

Expose session API to scripting as tiled.session#4345

Open
kanishka0411 wants to merge 1 commit intomapeditor:masterfrom
kanishka0411:feature/scripting-session-api
Open

Expose session API to scripting as tiled.session#4345
kanishka0411 wants to merge 1 commit intomapeditor:masterfrom
kanishka0411:feature/scripting-session-api

Conversation

@kanishka0411
Copy link
Contributor

Fixes #4222

Implemented tiled.session for scripting so scripts can read/write session values by key and access per-file state.
This lets scripted map/tileset creation use the same remembered values as Tiled dialogs, and includes safe behavior in --evaluate mode when no session is active.

@kanishka0411 kanishka0411 force-pushed the feature/scripting-session-api branch from 8e123d5 to 65a6a33 Compare February 21, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scripting: Access user's tile size preferences

1 participant