Parameter Connection Editor Attributes

View attributes for the Parameter Connection Editor. Not all attributes support both setting and getting. Check the third column in the table.

Note that these attributes allow you to pre-set the selection for the Parameter Connection Editor, but it does not actually set the expression.

Attribute Name | Description | Supports
linktype | Specifies how the parameters are linked. This corresponds to one of the values in the drop-down list on the Parameter Connection Editor. Possible Values: • equal Equals (=) Expression (drives the value directly) • linkwith Link With (drives the value via fcurve) • linkwithmulti Link With Multi (drives the value via an interpolation of one or more values) | • Get • Set
targetcontent | Specifies which objects should be selected in the editor. There are two variants which allow you to indicate whether the specified object should appear in the Driven or Driving side of the editor: targetcontent:driven and targetcontent:driving. If you use targetcontent only, then targetcontent:driven is assumed. Possible Values: • <any object> The name of a scene object. | • Get
select | Specifies which parameters should be selected in the Driven or Driving side of the editor. There are two variants which allow you to indicate whether the specified parameter should appear in the Driven or Driving side of the editor: select:driven and select:driving. If you use select only, then select:driven is assumed. Possible Values: • <any parameter> The name of a parameter. | • Get

| See View Attributes for a complete list of types of attributes that you can use when customizing your Relational Views.

JScript Example

    NewScene(null, false);
    GetPrim("Null");
    CreatePrim("Sphere", "MeshSurface");
    DeselectAll();

    var lay = Application.Desktop.ActiveLayout;
    var vw = lay.CreateView("Parameter Connection Editor", "MyCnxEditor");
    Application.LogMessage(vw.GetAttributeValue("targetcontent")); // INFO :
    Application.LogMessage(vw.GetAttributeValue("select")); // INFO :
    Application.LogMessage(vw.GetAttributeValue("linktype")); // INFO : linkwith

    // The 'targetcontent' property - set only (driven by default)
    // vw.SetAttributeValue("targetcontent:driven", "sphere");
    vw.SetAttributeValue("targetcontent", "sphere");
    vw.SetAttributeValue("targetcontent:driving", "null");

    // The various linktypes - both set & get
    vw.SetAttributeValue("linktype", "linkwith");
    vw.SetAttributeValue("linktype", "linkwithmulti");
    vw.SetAttributeValue("linktype", "equal");

    // The 'select' property - set only
    // You are able to select one or more of the params in either the driving
    // or driven explorers (driven is the default).
    vw.SetAttributeValue("select", "sphere.kine.local.posx");
    vw.SetAttributeValue("select:driving", "null.kine.local.posx");
    vw.SetAttributeValue("select", "sphere.kine.local.posy");
    vw.SetAttributeValue("select:driving", "null.kine.local.posy");
    vw.SetAttributeValue("select", "sphere.kine.local.posz");
    vw.SetAttributeValue("select:driving", "null.kine.local.posz");

Autodesk Softimage v7.5