Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 1.65 KB

File metadata and controls

60 lines (47 loc) · 1.65 KB

SetTexSpace2DOffset

Description

Procedure SetTexSpace2DOffset sets the 2D offset for the referenced texture space in real-world inches.

PROCEDURE SetTexSpace2DOffset(
				textureSpace : HANDLE;
				offsetU      : REAL;
				offsetV      : REAL);
def vs.SetTexSpace2DOffset(textureSpace, offsetU, offsetV):
    return None

Parameters

Name Type Description
textureSpace HANDLE Handle to texture space.
offsetU REAL Texture offset U component.
offsetV REAL Texture offset V component.

Remarks

Sets the 2D offset for this texture space in real-world inches.

Note: SetTexMapXXX routines replace the older SetTexSpaceXXX routines. It is recommended that all developers transition to the newer versions.

Examples

END;
SetTexSpaceStartCap( temp2_h, JoistMapStartCap);
SetTexSpaceEndCap	( temp2_h, JoistMapEndCap);
SetTexSpace2DScale(temp2_h, JoistMapScale);
SetTexSpace2DOffset(temp2_h, JoistMapHorOffset, JoistMapVertOffset );
SetTexSpace2DRot(temp2_h , JoistMapRotation);

GetTexSpace2DOffset( wallTextureSpace, uOffset, vOffset );
SetTexSpace2DOffset( objTextureSpace, uOffset, vOffset );

SetTexSpace2DOffset(hTextureSpace, (VirtScrnWdth*moveimh)+ImageXShift, (VirtScrnHeight*moveimv)+ImageZShift);
import vs

# Procedure SetTexSpace2DOffset sets the 2D offset for the referenced texture
# space in real-world inches.
textureSpace = vs.FSActLayer()  # handle to the first selected object on the active layer
offsetU = 0.0
offsetV = 0.0

vs.SetTexSpace2DOffset(textureSpace, offsetU, offsetV)

Version

Availability: from VectorWorks8.0

Category