VS:CreateImageProp

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix


Description

Create an image prop from the options specified.

The texture resource and optional symbol created will use names derived from the propName parameter. If those names are being used then unique names will be assigned. If enforceImageAspectRatio is true, depending on deriveWidthFromHeight the prop width/height will be derived from the prop height/width and the texture?s image aspect ratio. Otherwise the height and width can be set independently of the texture?s image aspect ratio.

FUNCTION CreateImageProp(
propName  :STRING;
textureRef  :LONGINT;
height  :REAL;
width  :REAL;
enforceImageAspectRatio  :BOOLEAN;
crossedPlanes  :BOOLEAN;
createPlugin  :BOOLEAN;
autoRotate  :BOOLEAN;
createSymbol  :BOOLEAN) : HANDLE;
def vs.CreateImageProp(propName, textureRef, height, width, enforceImageAspectRatio, crossedPlanes, createPlugin, autoRotate, createSymbol):
    return HANDLE

Parameters

propName STRING
textureRef LONGINT
height REAL
width REAL
enforceImageAspectRatio BOOLEAN
crossedPlanes BOOLEAN
createPlugin BOOLEAN
autoRotate BOOLEAN
createSymbol BOOLEAN

Version

Availability: from VectorWorks11.5
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox