Description This function creates a copy of an existing surface roughness model.
Syntax copiedNode = SurfRoughCopy( masterNode )
Parameters copiedNode (Long) Node number of the newly created roughness node.
masterNode As Long Node number of the roughness model which is being copied.
Example The following script makes a copy of an existing surface roughness node, checking for return values not equal to -1 (indicating failure) and printing information to the output window.
Sub Main
Dim gaussRoughNode As Long gaussRoughNode = SurfRoughFindName( "Gaussian Roughness" ) If gaussRoughNode <> -1 Then Print "Gaussian roughness node found at: " & gaussRoughNode End If
Dim gaussCopyNode As Long gaussCopyNode = SurfRoughCopy( gaussRoughNode ) If gaussCopyNode <> -1 Then Print "Copy of gaussian roughness made at: " & gaussCopyNode End If
Update
End Sub
See Also SurfRoughSRSNGetIthProbability SurfRoughSRSNGetOverallRoughnessProbability SurfRoughSRSNSetOverallRoughnessProbability
|