ConnectFromProgID (Parameter)
Introduced
2.0
Description
Creates a DataSource object from a ProgID string and connects it to the parameter.
Note: This method uses output arguments. C# and some scripting languages (such as JScript, PerlScript and Python) don't support arguments passed by reference. Normally for scripting you can get the output arguments via the ISIVTCollection, but this method already returns a value (C# cannot use this workaround because it does not have access to the ISIVTCollection).
The only available workaround in this case is to create a VBScript custom command which returns both the output arguments and the return value in one array. For details, see What Happens when the Function Already Returns a Value?.
Scripting Syntax
Parameter.ConnectFromProgID( ProgID, [PrevDataSource] )
C# Syntax
DataSource Parameter.ConnectFromProgID( String in_ProgID, Object& out_pvPrevDataSource );Parameters
|
Parameter |
Type |
Description |
|
ProgID |
The ProgID is a string name that can be used to look up a data source type. Data sources that support ProgIDs implement a ProgID property (for example, Shader.ProgID). |
|
|
PrevDataSource [out] |
DataSource object (for example, Shader, ImageClip) |
The previously connected data source if any. The method returns "Nothing" if there is no previously connected data source. |
Return Value
Newly created DataSource object, such as a Shader or an ImageClip.
See Also
|
|
Examples
• See Parameter.ConnectFromProgID.1.vbs
Autodesk Softimage 2011