Re: Tutorial For Viewport?
The object is simple. Instead of copying values from other examples, try to find out what each argument/parameter for the object does.
Each expression you input has a title that explains you what values it expects.
For example: The arguments for the 'Set source region (centered)' action:
Center-X coordinate
Center-Y coordinate
Width
Height
So which position on the screen do you wish to "zoom in" on?
The width and height of the source region will be the rectangle that will be stretched to fill the entire width and height of the viewport object. If the width and height of the source region is the same as the object's own width and height then there will be no zoom. If you make the source region smaller than that, then the small area will be stretched larger and giving you a zoom effect. If you make the source region larger you will get a zoom-out effect.
The ViewPort object doesn't have a 'set zoom percentage' action. Sorry if that confuses you, but this is more flexible.