Saving default grid settings

Help
2012-03-01
2013-06-05
  • Mirek Junek

    Mirek Junek - 2012-03-01

    Hello,
    is there any way to save the grid settings for new projects so that it is not necessary to set it each time I create a new project ? It is realy anoying to set the grid spacing and grid snapping for each new project. Or did I overlooked something ?

    Mirek

     
  • Bill French

    Bill French - 2012-03-01

    Download "TroysTools" plugin, and you can change your preferred setup upon starting AOI.

    Not only grid settings - but camera angle, directional light, etc..

    Good luck, and happy modeling

    Bill

     
  • Mirek Junek

    Mirek Junek - 2012-03-01

    Thanks for reply.
    I've downloaded the plugin version 2.5 from http://aoisp.sourceforge.net/AoIRepository/Plugins/TroyTools/ but it only allows to save Maximized window, Show grid, Snap to grid, Reset ambient color to black, Kill initial light and Alter camera, but nor the grid settings neither camera angle ….
    Is there any newer version ?

    Mirek

     
  • Bill French

    Bill French - 2012-03-01

    not that I'm aware of - but at least this tool takes half of the repetion out of startup !

    ---> Bill

     
  • Peter Eastman

    Peter Eastman - 2012-03-03

    Here's a startup script that will do more or less what you want.  (It actually sets the grid options every time you open a scene, not just when you create a new one.)

    PluginRegistry.registerPlugin(new Plugin() {
      processMessage(message, args)
      {
        if (message == Plugin.SCENE_WINDOW_CREATED)
          {
            scene = args[0].getScene();
            scene.setShowGrid(true);
            scene.setSnapToGrid(true);
            scene.setGridSpacing(1.0);
            scene.setGridSubdivisions(10);
            for (view : args[0].getAllViews())
              view.setGrid(scene.getGridSpacing(), scene.getGridSubdivisions(), scene.getShowGrid(), scene.getSnapToGrid());
          }
      }
    });
    

    Save this in a file called setGrid.bsh in your Scripts/Startup folder, then launch AoI.

    Peter

     
  • Mirek Junek

    Mirek Junek - 2012-03-04

    It works, that is exactly what I needed

    thank you very much

    Mirek

     
  • pencilart

    pencilart - 2012-03-04

    Thanks so much, Peter!
    I too have been wanting this. Great job!

     
  • pencilart

    pencilart - 2012-04-19

    Ok, now I have a question about this. It works in the main editor windows but not in the P.M.E.
    How can I get it to work there also?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks