## Getting Object Properties

getObjectType(...)
  `getObjectType(["name"]) -> string`

  Get type of object "name" as a string. If "name" is not given the currently selected item is used.

getBoundingBox(...)
  `getBoundingBox(["name"]) -> (x, y, width, height)`

  Returns a (x, y, width, height) tuple with the position and size of the object "name". If "name" is not given the currently selected item is used.

  The size is expressed in the current measurement unit of the document - see UNIT_ for reference.

getCornerRadius(...)
  `getCornerRadius(["name"]) -> integer`

  Returns the corner radius of the object "name". The radius is expressed in points. If "name" is not given the currently selected item is used.

getCustomLineStyle(...)
  `getCustomLineStyle(["name"]) -> string`

  Returns the style name of custom line style for the object. If object's "name" is not given the currently selected item is used.

getFillBlendmode(...)
  `getFillBlendmode(["name"]) -> integer`

  Returns the fill blendmode of the object "name". If "name" is not given the currently selected Item is used.

getFillColor(...)
  `getFillColor(["name"]) -> string`

  Returns the name of the fill color of the object "name". If "name" is not given the currently selected item is used.

getFillShade(...)
  `getFillShade(["name"]) -> integer`

  Returns the shading value of the fill color of the object "name". If "name" is not given the currently selected item is used.

getFillTransparency(...)
  `getFillTransparency(["name"]) -> float`

  Returns the fill transparency of the object "name". If "name" is not given the currently selected Item is used.

getImageColorSpace(...)
  `getImageColorSpace(["name"]) -> integer (see CSPACE_* constants)`

  Returns the color space of the image loaded in image frame "name" as one of following integer constants:

  - CSPACE_RGB
  - CSPACE_CMYK
  - CSPACE_GRAY
  - CSPACE_DUOTONE
  - CSPACE_MONOCHROME.

  Returns CSPACE_UNDEFINED if there is no image loaded in the frame.

  If "name" is not given the currently selected item is used.

getImageFile(...)
  `getImageFile(["name"]) -> string`

  Returns the filename for the image in the image frame. If "name" is not given the currently selected item is used.

getImageOffset(...)
  `getImageOffset(["name"]) -> (x,y)`

  Returns a (x, y) tuple containing the offset values in point unit of the image frame "name". If "name" is not given the currently selected item is used.

getImagePpi(...)
  `getImagePpi(["name"]) -> (x,y)`

  Returns a (x, y) tuple containing the actual PPI of the image frame "name". If "name" is not given the currently selected item is used.

getImageScale(...)
  `getImageScale(["name"]) -> (x,y)`

  Returns a (x, y) tuple containing the scaling values of the image frame "name". If "name" is not given the currently selected item is used.

getItemPageNumber(...)
  `getItemPageNumber(["name"]) -> integer`

  Returns the page number for the given page item. If "name" is not given the currently selected item is used.

getLineBlendmode(...)
  `getLineBlendmode(["name"]) -> integer`

  Returns the line blendmode of the object "name". If "name" is not given the currently selected Item is used.

getLineCap(...)
  `getLineEnd(["name"]) -> integer (see constants)`

  Returns the line cap style of the object "name". If "name" is not given the currently selected item is used. The cap types are: CAP_FLAT, CAP_ROUND, CAP_SQUARE

getLineColor(...)
  `getLineColor(["name"]) -> string`

  Returns the name of the line color of the object "name". If "name" is not given the currently selected item is used.

getLineJoin(...)
  `getLineJoin(["name"]) -> integer (see constants)`

  Returns the line join style of the object "name". If "name" is not given the currently selected item is used. The join types are: JOIN_BEVEL, JOIN_MITTER, JOIN_ROUND

getLineShade(...)
  `getLineShade(["name"]) -> integer`

  Returns the shading value of the line color of the object "name". If "name" is not given the currently selected item is used.

getLineStyle(...)
  `getLineStyle(["name"]) -> integer (see constants)`

  Returns the line style of the object "name". If "name" is not given the currently selected item is used. Line style constants are: LINE_DASH, LINE_DASHDOT, LINE_DASHDOTDOT, LINE_DOT, LINE_SOLID

getLineTransparency(...)
  `getLineTransparency(["name"]) -> float`

  Returns the line transparency of the object "name". If "name" is not given the currently selected Item is used.

getLineWidth(...)
  `getLineWidth(["name"]) -> integer`

  Returns the line width of the object "name". If "name" is not given the currently selected Item is used.

getObjectAttributes(...)
  `getObjectAttributes(["name"]) -> list`

  Returns a list containing all attributes of object "name". If "name" is not given the currently selected Item is used.

getPosition(...)
  `getPosition(["name"]) -> (x,y)`

  Returns a (x, y) tuple with the position of the object "name". If "name" is not given the currently selected item is used. The position is expressed in the actual measurement unit of the document - see UNIT_<type> for reference.

getRotation(...)
  `getRotation(["name"]) -> integer`

  Returns the rotation of the object "name". The value is expressed in degrees, and clockwise is positive. If "name" is not given the currently selected item is used.

getSize(...)
  `getSize(["name"]) -> (width,height)`

  Returns a (width, height) tuple with the size of the object "name". If "name" is not given the currently selected item is used. The size is expressed in the current measurement unit of the document - see UNIT_<type> for reference.

getVisualBoundingBox(...)
  `getVisualBoundingBox(["name"]) -> (x, y, width, height)`

  Returns a (x, y, width, height) tuple corresponding to the visual bounding box of the object "name". If "name" is not given the currently selected item is used.

  The size is expressed in the current measurement unit of the document - see UNIT_ for reference.