PDA

View Full Version : Limited Region Buttons



ALPforce
09-26-2010, 12:37 AM
Hey , folks , we were talking on the HardCORE forums and, trying to fill a buddy request, I wrote two simple generic LScripts , which can be tied to buttons and switch between two settings of the Limited Region rendering.
One renders the whole frame and leaves the area around limited region black.
The other renders just the limited region and sets it as a "whole" image, i.e. without black borders.
Usually the switching between one and the other is done via clicking "l" or the Limited Region button again, so it cycles through the modes.
These two scripts will create a more direct solution :
Script that will activate Limited Region with No borders : LNB.ls


@warnings
@name Limited::NB
generic
{
LimitedRegion(2);
}

Script that will activate Limited Region with Borders : LB.ls


@warnings
@name Limited::B
generic
{
LimitedRegion(1);
}


I just thought that, since it is a generic solution, anyone can benefit from this, not just the HardCORE members :)

ALPforce
09-26-2010, 04:10 PM
My mistake : It seems the LimitedRegion LScript command does not accept any parameters even though the LScript Commander translates it this way, so the right (and thoroughly tested) versions for the scripts would be as follows :

Script : LNB.ls


@script generic
@name Limited::NB

generic
{
CommandInput("LimitedRegion 2");
}


Script : LB.ls


@script generic
@name Limited::NB

generic
{
CommandInput("LimitedRegion 1");
}