Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create an element either select Actions ‣ Create Script Object in the main menu, select Create element with script in the context menu or click on the following button on the toolbar:

HTML
<center>
<br>
  <img src="/wiki/download/attachments/2097187/script.png"/>
</br>
</center>

The Create Element with Script dialog will appear:

...

HTML
<center>
  <img src="/wiki/download/attachments/2097187/Custom Elements with Scripts_2script_edit.png"/>
</center>

The Script editor dialog will appear:

HTML
<center>
  <img src="/wiki/download/attachments/2097187/script_editor_dialogCustom Elements with Scripts_2.png"/>
</center>

As you can see there are predefined variables for the ports and the attributes in the script. The variables for the input slots begin with the “in_” prefix, variables for the output slots begin with the “out_” prefix. It is possible to load a script from a file (use the Used script field to do it).

...