## Setting Object Properties

loadImage(...)
  `loadImage("filename" [, "name"])`

  Loads the picture "picture" into the image frame "name". If "name" is not given the currently selected item is used.

  May raise WrongFrameTypeError if the target frame is not an image frame

outlineText(...)
  `outlineText(["name"])`

  Convert the text frame "name" to outlines. If "name" is not given the currently selected item is used.

scaleImage(...)
  `scaleImage(x, y [, "name"])`

  Do not use this command since it no longer works. Use setImageScale instead.

setCornerRadius(...)
  `setCornerRadius(radius, ["name"])`

  Sets the corner radius of the object "name". The radius is expressed in points regardless of page units, and must be an integer. If "name" is not given the currently selected item is used.

  May raise ValueError if the corner radius is negative.

setCustomLineStyle(...)
  `setCustomLineStyle(styleName, ["name"])`

  Sets the custom line style of the object "name" to "styleName". Argument "styleName" is the name of line style as seen in Style Manager. If "name" is not given the currently selected item is used.

setFillBlendmode(...)
  `setFillBlendmode(blendmode, ["name"])`

  Sets the fill blendmode of the object "name" to blendmode. If "name" is not given the currently selected item is used.

setFillColor(...)
  `setFillColor("color", ["name"])`

  Sets the fill color of the object "name" to the color "color". "color" is the name of one of the defined colors. If "name" is not given the currently selected item is used.

setFillShade(...)
  `setFillShade(shade, ["name"])`

  Sets the shading of the fill color of the object "name" to "shade". "shade" must be an integer value in the range from 0 (lightest) to 100 (full Color intensity). If "name" is not given the currently selected Item is used.

  May raise ValueError if the fill shade is out of bounds.

setFillTransparency(...)
  `setFillTransparency(transparency, ["name"])`

  Sets the fill transparency of the object "name". If "name" is not given the currently selected item is used.

  In spite of this command's wording, the "transparency" value is actually a decimal corresponding to the opacity, so for example, 0.9 = 90% opacity, 0.2 = 20% opacity.

setGradientFill(...)
  `setGradientFill(type, "color1", shade1, "color2", shade2, ["name"])`

  Sets the gradient fill of the object "name" to type. Color descriptions are the same as for setFillColor() and setFillShade(). See the constants for available types (FILL_<type>).

setGradientStop(...)
  `setGradientStop("color", shade, opacity, ramppoint, ["name"])`

  Set or add a gradient stop to the gradient fill of the object \"name\" at position ramppoint. Color descriptions are the same as for setFillColor() and setFillShade(). setGradientFill() must have been called previously for the gradient fill to be visible.

setImageScale(...)
  `setImageScale(x, y [, "name"])`

  Sets the scaling factors of the picture in the image frame "name". If "name" is not given the currently selected item is used. A number of 1 means 100 %. Scaling factors are equal to the values shown on properties palette.

  May raise WrongFrameTypeError if the target frame is not an image frame

setImageOffset(...)
  `setImageOffset(x, y [, "name"])`

  Sets the position of the picture in the image frame "name". If "name" is not given the currently selected item is used. The specified offset values are equal to the values shown on properties palette when point unit is used.

  May raise WrongFrameTypeError if the target frame is not an image frame

setItemName(...)
  `setItemName(newName, [, "name"])`

  Sets the name of the object "name" to "newName" and returns the name applied. If "name" is not given the currently selected item is used.

  May raise NotFoundError if the object doesn't exist.

setLineBlendmode(...)
  `setLineBlendmode(blendmode, ["name"])`

  Sets the line blendmode of the object "name" to blendmode is the name of one of the defined colors. If "name" is not given the currently selected item is used.

setLineCap(...)
  `setLineCap(captype, ["name"])`

  Sets the line cap style of the object "name" to the style "cap". If "name" is not given the currently selected item is used.

  The value "cap" must be taken amongst predefined constants CAP_<type>: CAP_FLAT, CAP_ROUND, or CAP_SQUARE.

setLineColor(...)
  `setLineColor("color", ["name"])`

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

setLineJoin(...)
  `setLineJoin(join, ["name"])`

  Sets the line join style of the object "name" to the style "join". If "name" is not given the currently selected item is used.

  The value "join" must be taken amongst predefined constants JOIN_<type>: JOIN_BEVEL, JOIN_MITTER or JOIN_ROUND.

setLineShade(...)
  `setLineShade(shade, ["name"])`

  Sets the shading of the line color of the object "name" to "shade". "shade" must be an integer value in the range from 0 (lightest) to 100 (full color intensity). If "name" is not given the currently selected item is used.

  May raise ValueError if the line shade is out of bounds.

setLineStyle(...)
  `setLineStyle(style, ["name"])`

  Sets the line style of the object "name" to the style "style". If "name" is not given the currently selected item is used.

  There are predefined constants for "style" - LINE_<style>.

setLineTransparency(...)
  `setLineTransparency(transparency, ["name"])`

  Sets the line transparency of the object "name". If "name" is not given the currently selected item is used. In spite of this command's wording, the "transparency" value is actually a decimal corresponding to the opacity, so for example, 0.9 = 90% opacity, 0.2 = 20% opacity.

setLineWidth(...)
  `setLineWidth(width, ["name"])`

  Sets line width of the object "name" to "width". "width" must be in the range from 0.0 to 12.0 inclusive, and is measured in points. If "name" is not given the currently selected item is used.

  May raise ValueError if the line width is out of bounds.

setMultiLine(...)
  `setMultiLine("namedStyle", ["name"])`

  Sets the line style of the object "name" to the named style "namedStyle". If "name" is not given the currently selected item is used.

  May raise NotFoundError if the line style doesn't exist.

setObjectAttributes(...)
  `setObjectAttributes(attributes, ["name"])`

  Sets attributes of the object "name". If "name" is not given the currently selected item is used.

  attributes is a list of dictionary. Each dictionary must have those keys: Name, Type, Value, Parameter, Relationship, RelationshipTo, AutoAddTo. All values must be strings.

traceText(...)
  `traceText(["name"])`

  Deprecated, use outlineText() instead.