Skip to content

Creating Move code from the Model

Pranav Patel edited this page Mar 23, 2021 · 3 revisions

Creating Move code from the Model

When the model is created in the Model Editor, the MoveCodeGenerator plugin can be used to generate its Move code representation. The generated code will be stored in the generatedMoveCode attribute and can be seen with the View Generated Code button in the Move Code Editor panel. This code can then be saved into the CustomMoveCode attribute using the save code button to be used further.

Process follows:

  1. Have a model built and then click on the MoveCodeGenerator plugin
code_gen_with_model
  1. Run the plugin
code_gen_run
  1. View the success
successful_run
  1. View the generated code in the Move Code Editor panel
generated_code_shown