I was looking into this back in January.
In Jscript, here's what I came up with...I remember that sometimes it failed, 
that's why I had the try catch...

In the end it seemed easier to just use SetValue, sorry.


try
{
        var oSetData = AddICECompoundNode("Set Data", oIceTree);
        var oPorts = VBArray(oSetData.ExposedPorts).toArray();
        var oSetOneData = oPorts[0](0).Parent;
        oSetOneData.Parameters("Reference").Value = "self.__PointInVolumeFlag";
        ConnectICENodes( oSetData.InputPorts( "Value" ), 
oPointInVolumeNode.OutputPorts( "result" ) );
}
catch(e)
{
        LogMessage( e.description );
        SetValue( oSetData.FullName + ".Reference", "self.__PointInVolumeFlag", 
null);
        ConnectICENodes( oSetData.FullName + ".Value", 
oPointInVolumeNode.FullName + ".result");
}


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Sebastian Kowalski
Sent: July-27-12 5:15 AM
To: [email protected]
Subject: setting references in set data compound, python

hey list,
i cant figure out how to set the references of set data nodes.
this wont work:

setter0 = Application.AddICECompoundNode('Set Data', oTree) 
setter0.InputPorts(1).Value = 'this.tmp'
or
setter0.Value = 'this.tmp'
or
setter0.Parameters('reference').Value = 'this.tmp'

i refuse to use a command for that . . . 

<<attachment: winmail.dat>>

Reply via email to