Create2DMapWithProjection

Description

Creates a new 2D texture map property and the requested texture projection, and initializes the 2D Texture Map to refer to this texture projection. Texture maps can be used with mappable parameters for the Particle operator and the hair object, and in render trees using the Map Lookup shader.

Scripting Syntax

Create2DMapWithProjection( [InputObjs], [PropertyName], [PropagationType], [Type], [Camera], [Inspect] )

Parameters

Parameter

Type

Description

InputObjs

String

List of objects and/or clusters to add the properties to.

Default Value: Selected objects

PropertyName [in/out]

String

Name for the new texture projection.

PropagationType

siPropagationType

Propagation method for the property.

Default Value: siDefaultPropagation

Type

siTxtCreationType

Type of the new texture projection.

Camera [in/out]

String

Camera to use if Type is siTxtCamera.

Default Value: Starts a pick session

Inspect

Boolean

Whether to autoinspect the resulting prop or not.

Default Value: True

Return Value

Returns an XSICollection that contains the 2D Texture Map objects.

Examples

VBScript Example

NewScene
CreatePrim "Sphere", "MeshSurface"
CreatePrim "Sphere", "MeshSurface"
Translate , -5.0, 0.0, 0.0, siRelative, siView, siObj, siXYZ
AddToSelection "sphere", , True
set List = Create2DMapWithProjection
for each Map in List
     logmessage "new map:" & Map
next
Create2DMapWithProjection , , , siTxtUV
Create2DMapWithProjection , , , siTxtPlanarXY
Create2DMapWithProjection , , , siTxtPlanarYZ
Create2DMapWithProjection , , , siTxtPlanarXZ
Create2DMapWithProjection , , , siTxtCylindrical
Create2DMapWithProjection , , , siTxtSpatial

See Also

Create2DMap

CreateProjection



Autodesk Softimage v7.5