
November 6th, 2004, 02:05 PM
|
|
Registered User
|
|
Join Date: Nov 2004
Location: New Jersey
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
need scripting help in vb.net for PS - array(..)
Photoshop Scripting in VB.net - problem with array()
--------------------------------------------------------------------------------
Hi, I have a problem with translating a VB example for photoshop scripting into VB.net. I am trying to activate a selection marquee in the active document in photoshop.
The example in the Photoshop script examples folder has the code (in the scripting examples "selection.txt")...
docRef.Selection.Select Array(Array(50, 60), Array(150, 60), Array(150, 120), Array(50, 120)), Type:=selectionType, Feather:=10, AntiAlias:=False
However, VB.Net returns an error on "array(...)" , evidentally it's not an implemented function. I tried all sorts of ways to solve this, nothing worked. The parameter filled by "array(...)" is called out as 'Range as object' in the help pop-up prompt, but nothing in the documentation explains how this range object is constructed.
Does anyone have thoughts on how to define a range, so that the "docRef.Selection.select" method works ?
Thanks so much, astra.
|