Question
VB: Simple Selection
Hi all,
I am just writing my first Photoshop CS2 script in VB that exports all layers to separate files, where the resulting file resolutions are the same as the layer bounds.
So far no problem.
The way I thought about is
- Opening Document
- running on all Layers
- making a Selection of Layer-Size
- Copy this Selection
- New File, paste, Save
- next Layer
I'm sticking in making a selection. Didn't manage to build the correct syntax for selecting the layer bounds I got by layer.Bounds.
The current code is:
document.Selection.Select(layer.Bounds, Photoshop.PsSelectionType.psReplaceSelection, 0, False)
Unfortunately this throws an error. What am I doing wrong?
I am just writing my first Photoshop CS2 script in VB that exports all layers to separate files, where the resulting file resolutions are the same as the layer bounds.
So far no problem.
The way I thought about is
- Opening Document
- running on all Layers
- making a Selection of Layer-Size
- Copy this Selection
- New File, paste, Save
- next Layer
I'm sticking in making a selection. Didn't manage to build the correct syntax for selecting the layer bounds I got by layer.Bounds.
The current code is:
document.Selection.Select(layer.Bounds, Photoshop.PsSelectionType.psReplaceSelection, 0, False)
Unfortunately this throws an error. What am I doing wrong?
