The TransformOrigin option sets the location for the Origin for a Transform module. The OptionValue is a number, indicating the origin location. Available values are 0 for Center, 1 for LowerLeft, 2 for UpperRight, and 3 for Custom.
After changing the Transform to use a custom origin, set the TransformXOrigin, TransformXOrigin, and TransformXOrigin option to set the custom location.
Syntax
object.Construct(“ModifyModule”)
object.Option(“Module”, “Transform”)
object.Option(“TransformOrigin”, “OptionValue”)
object.Do() or object.DoOnce()
Example
This example changes the origin for a Transform module to the LowerLeft corner of the bounding box.
CommandApi.Construct ("ModifyModule")
CommandApi.Option ("Module", "Transform")
CommandApi.Option ("TransformOrigin", "1")
CommandApi.Do()
Used by: Transform
See Also