AddShaderAttachedComment

Introduced

v7.0

Categories

Rendering

Description

Adds an attached comment to a Shader.

Scripting Syntax

oReturn = AddShaderAttachedComment( [Container] );

Return Value

The new comment as a Shader object.

Parameters

Parameter Type Description
Container SelectionList or Selection

Default Value: If no argument is specified, the current selection is used.

Examples

JScript Example

/*
        This example demonstrates how to use the AddShaderAttachedComment command.
*/
NewScene(null, false);
AddShaderAttachedComment( "Sources.Materials.DefaultLib.Scene_Material.Phong" );

See Also

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