For what's worth, here's my CVO (Custom view opener) dual monitor script
for the icetree.
Rename to CVO.js (can't attach js files!) > Copy to "application\plugins" >
Map it to any key combination (mine is always ctrl+[original shortcut]).

- Screen resolution must be set inside the file (currently is 1920x1080).
- you may also adjust some pixel offsets to better accomodate for your OS
layout.
- "viewname" has to match any file from the "application\views" folder

You can register more commands to it, I always do:

- icetree
- rendertree
- script editor
- object view (ctrl+alt+1)
- fx tree  (ctrl+alt+2): opens fxtree maximized at monitor 1 and fxviewer
at monitor 2


2013/1/16 Eugen Sares <[email protected]>

> Let's share the good stuff, definitely!
>
> Which reminds me: shouldn't ol' Netview be the easy-to-access repository
> we all would like to have?
> What happened to it, and why?
>
>
> Am 16.01.2013 18:07, schrieb Ben Houston:
>
>  I wonder if it would be possible to share some Workgroups via Dropbox
>> or maybe just a set of installers grouped in various ways.  Might
>> allow for one person to damage the whole thing though. :-/
>>
>>
>
function  XSILoadPlugin( in_reg )
{
   in_reg.Author = "Fabricio Chamon"; 
   in_reg.Name = "CustomViewOpener_ICETREE";
   in_reg.Major = 1;
   in_reg.Minor = 0;
   in_reg.RegisterCommand("CVO_ICETREE_COMMAND", "CVO_ICETREE");
   return true;
} 

function  CVO_ICETREE_COMMAND_Init( in_ctxt )
{
   var cmd = in_ctxt.Source;
   cmd.Arguments.Add("argument0");
   return true;
}

function  CVO_ICETREE_COMMAND_Execute( in_arg )
{
    
        //------------------------------------//
        // CUSTOM VIEW OPENER FOR DUAL MONITOR
        //------------------------------------//
        var desktopResolutionX = 1920;
        var desktopResolutionY = 1080;
        var viewname = "ICETREE"
        //------------------------------------//

        posX = desktopResolutionX+20;
        posY = 10;
        width = desktopResolutionX-30;
        height = desktopResolutionY-50;
        var view = 
openview(application.installationpath(siFactoryPath)+"\\application\\views\\"+viewname+".xsivw");
        view.move(posX, posY);
        view.resize(width, height);

}



Reply via email to