v2.0
Connects a Shader object to the parameter.
DataSource Parameter.Connect( DataSource in_pDataSource ); |
oReturn = Parameter.Connect( DataSource ); |
Previously connected Shader object
Parameter | Type | Description |
---|---|---|
DataSource | Shader | The Shader DataSource to use for the new connection |
' ' This example illustrates how to connect a phong shader to a ' material manually. ' NewScene , false set grid = Application.ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" ) set mat = grid.AddMaterial set surface = mat.Parameters("Surface") set phong = surface.ConnectFromProgID( "Softimage.material-phong.1" ) set shadow = mat.Parameters("Shadow") call shadow.Connect( phong ) set photon = mat.Parameters("Photon") call photon.Connect( phong ) |
FCurve Shader Expression Parameter.ConnectFromFile Parameter.ConnectFromPreset Parameter.ConnectFromProgID SceneItem.AddMaterial Parameter.Disconnect Shader Presets