## RenameShaderCompoundPort

### Introduced

v7.0

### Description

Renames a shader compound port. You can pass either an internal or external input or output port on a compound. When the name already exists, the new port named is appended an index to make sure it is unique.

### Scripting Syntax

    oString = RenameShaderCompoundPort( InputObj, Name, DisplayName );

### Return Value

Returns the new port name of the compound port as a String.

### Parameters

Parameter | Type | Description
--- | --- | ---
InputObj | String | Shader Compound Port to Rename.
Name | String | New name for the shader compound port.
DisplayName | String | New diplay name for the shader compound port.

### See Also

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