Pretty Poly Editor Documentation


<= previous = Return to Index = next =>

I. PPE Manual - 9. Personalizing, Macros and Scripts - a Personalizing


When PPE starts, it executes a macro/script-file called .ppe_rc. If this file doesn't exist, PPE will create a file for you, which contains just a comment line. Since this file is just a ASCII-file that may contain commands from PPE or from the language python, you can write it yourself, when you are advanced. However, for now, it is easiest to use PPE to generate a file with the commands we want. Lets say, we want PPE to always start with "c:\ppe\models" as model-path, and to always start with light blue as default-background-colour. One feature we will use is that PPE, when ordered to, logs ALL user input. So, while reading this, try the following:
  • Start PPE. If it already runs, close and start it again.
  • In the 3D viewer file menu, click on "start macro recording".
  • Interactively, input the commands you want to have in the file. That is, set model-path to the path you want and choose a colour that you want as default.
  • In the 3D viewer file menu, click on "stop macro recording". PPE asks you for a filename and saves the recorded commands.
  • Copy the macro-file into the startup-file. Just for fun, look at it in a text-editor. It should look similar to:
    viewer.setModelPath('c:/ppe/models')
    viewer.interactGUIColour('Background', 0.000000, 0.000000, 0.594828, 1.000000)
  • Start PPE. It will automatically execute the commands. You will see the colour in the colour swatch. Look at your model-path by opening a model.

  • <= previous = Return to Index = next =>