## AddShaderCompoundPort

### Introduced

v7.0

### Description

Adds a shader compound port from a shader port that is nested under the compound.

### Scripting Syntax

    oReturn = AddShaderCompoundPort( ShaderPort, [ShaderCompound] );

### Return Value

Returns the newly-created compound port as a Parameter.

### Parameters

Parameter | Type | Description
--- | --- | ---
ShaderPort | String | Shader Port to expose.
ShaderCompound | String | Shader compound on which to add the port.

### See Also

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