Versions Compared

Key

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

...

The script creates a summary with some of the current scene's important settings: FPS rate, number of threads, simulation range, scale, and many more. When the command is executed, the script will print the output to the “Messages” window.

 Adding the Script to the “Commands Manager”

  • Open Tools > Commands Manager

  • Click on the “Add” button and choose “Add new script from file”.

  • Select the script.

...

  • Press “Embed command in RealFlow”.
  • Confirm the appearing dialogue and check "Reuse current Class ID".



Completing the Command's Properties

The most important part has been done already and the remaining input fields are completed within a few minutes:

  • The “Class Id” entry does not have to be changed unless you really have a reason for creating a new number. The Id's leading 4, by the way, indicates that the Id is assigned to a Python script.
  • By default, the script's file name is used for the “Name” field. Feel free to change it to something different.
  • Under “Copyright” enter “Next Limit Technologies” (or leave it blank)
  • To define a shortcut, please click on “Edit”.
  • In the appearing window, click on “+” and press the keys you want to use as a shortcut, e.g. Shift + S.
  • Confirm with “OK” and the shortcut appears in the appropriate field. If your shortcut is already used by RealFlow (e.g. Ctrl/Cmd + N) you will get a conflict warning.
  • Add description like “Python command, which prints a scene's most important specifications to RealFlow's "Messages" window.”
  • The icon should be stored in a save place. It is a good idea to use a common folder for all of your icons. Click on “Edit Icon” and load the SVG file in the "From File" tab with the "…" button. If you cannot see the icon change the file type to "Scalable Vector Graphics files (*.svg)".
  • Leave "As file reference" checked ad adjust the icon's resolution if necessary.
  • Click on “Apply”.



Adding a Command to a Shelf

The script appears in the “Commands Manager's” list and now it can be attached to a shelf.

...