Drawing Suite
407
Example
This example scales all pictures on
myDocument
to 175 percent of their original height and width.
set myDocument to active document
repeat with s in (get pictures in myDocument)
scale height s factor 1.75 with relative to original size
scale width s factor 1.75 with relative to original size
end repeat
Command: set extrusion direction
Sets the direction that the extrusion's sweep path takes away from the extruded shape.
Syntax
set extrusion direction shape/threeD format Required. An expression that returns a shape or
threeD format object.
preset extrusion direction enumeration Required. Specifies the extrusion direction. Can be one
of the following: preset extrusion direction unset, extrude bottom, extrude bottom left,
extrude bottom right, extrude left, extrude none, extrude right, extrude top, extrude top left,
or extrude top right.
This command sets the preset extrusion direction property to the direction specified by the preset
extrusion direction argument.
Example
This example specifies that the extrusion for shape 1 on
myDocument
should extend toward the top
of the shape and that the lighting for the extrusion should come from the left.
set myDocument to active document
set visible of threeD format of shape 1 of myDocument to true
set extrusion direction shape 1 of myDocument ¬
preset extrusion direction
extrude top
set preset lighting direction of threeD format of shape 1 of myDocument to ¬
light from left
Command: set shapes default properties
Applies the formatting of the specified shape to a default shape for that document. New shapes
inherit many of their attributes from the default shape.
Syntax
set shapes default properties shape Required. An expression that returns a shape object.