Skip to content

How is "data.pokemon" modeled and where can I find those models? #169

Closed Answered by haven1433
AkeemAllen asked this question in Q&A
Discussion options

You must be logged in to vote

The python tool reads model objects the same way that the table tool does. So anything you see as an entry in the table tool, you can access the same way in Python.

For example, if you look at the pokemon data in the table tool, you notice that the stats table is called data.oikemon.stats and it has a field called hp. So you could type data.pokemon.stats['charizard'].hp to read or write charizard's HP stat.

The python tool also has access to the editor, which you can use to run any methods on the main application (see EditorViewModel) and you can index it to get access to each individual tab that's currently open. For example, editor[0].Refresh() will refresh the content in the first tab.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@AkeemAllen
Comment options

Answer selected by AkeemAllen
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants