ImportShaderTree

Introduced

v9.0 (2011)

Description

Imports a shader tree. A shader tree is a kind of a compound representation of a shader node, having the .xsishaders extension (similar to the .xsirtcompound file for Render Tree compounds). Shader trees are basically shader compound whithout any exposed ports. The shader tree format replaces shader and material presets.

This is the scripting equivalent of dragging and dropping an .xsishaders file from the browser into the render tree.

Scripting Syntax

oReturn = ImportShaderTree( [Container], Path );

Return Value

Shader or Texture object.

Parameters

Parameter Type Description
Container String ShaderContainer to hold imported shader compound.

Default Value: Current selection

Path String Location of shader compound on disk.

See Also

ExportShaderTree ReplaceShadersDefinition CreateShaderFromPreset CreateShaderFromCLSID CreateShaderFromProgID CreateShaderCompound NestShaders UnnestShaders AddShaderCompoundPort RemoveShaderCompoundPort MoveShaderCompoundPort RenameShaderCompoundPort ExportShaderCompound ImportShaderCompound ExplodeShaderCompound SetShaderCompoundPropertiesEx GetShaderCompoundProperties EditShaderCompoundPPGLogic