Message 1 of 3
Maxscript to Photoshop: Can't find correct argument for Selection.Select()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm learning to manipulate Photoshop through Maxscript, and I'm just trying to select a specific area of the Photoshop document using [document].Selection.Select [region]. But I can't figure out how to pass the [region] argument, everything I try kicks an error of some kind. Does anyone have experience with this?
ps = CreateOLEObject"Photoshop.Application" -- launches Photoshop
doc = ps.application.documents.add 200 200 -- create a new document, 200 by 200 pixels
doc.Selection.Select #(0, 0, 100, 100) -- attempt to select an area, but it kicks an error