RE: Register Operator... How to deal with Ports.
| Date : Wed, 21 May 2008 13:19:16 +0100 |
| To : <XSI(at)Softimage.COM> |
| From : "kim aldis" <xsi(at)kim-aldis.co.uk> |
| Subject : RE: Register Operator... How to deal with Ports. |
|
Does this help:- // Input portgroup for any number of profile
inputs // PortGroup oProfilePortGroup =
newOp.AddPortGroup( L"Profiles", 1,500 ); newOp.AddInputPortByClassID( siPrimitiveID ,
L"ProfilePrimIn", oProfilePortGroup.GetIndex(), 0,
siOptionalInputPort ); // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Connect up
the ports %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // // Input Portgroup for the profile Kinestates // PortGroup oProfileKinePortGroup =
newOp.AddPortGroup( L"KineStates", 1,500 ); newOp.AddInputPortByClassID( siKinematicStateID
, L"PRofileKineIn", oProfileKinePortGroup.GetIndex(), 0,
siOptionalInputPort ); // connect up test null // Hmm, if we don't connect this, will it exist
later? //newOp.ConnectToGroup(
oOutputPortGroupPoints.GetIndex(), oNull.GetKinematics().GetLocal(), iInst ); // ToDo: Connect up the point count parameter
for our customised UV projection. // connect up the rail curve prim input newOp.ConnectToGroup(
oRailCurvePortGroup_In.GetIndex(), oRailCurve.GetActivePrimitive(), iInst ); // and connect up the profile(s) primitive(s)
and kinestate(s) // oProfileList is a collection built earlier. for ( i = 0; i< oProfileList.GetCount(); i++
) { X3DObject o = oProfileList[i]; Primitive oPrim =
o.GetActivePrimitive(); KinematicState oKineState =
o.GetKinematics().GetLocal(); CStatus stat =
newOp.ConnectToGroup( oProfilePortGroup.GetIndex(), oPrim, iInst ); stat = newOp.ConnectToGroup(
oProfileKinePortGroup.GetIndex(), oKineState, iInst ); } From: owner-xsi(at)Softimage.COM
[mailto:owner-xsi(at)Softimage.COM] On Behalf Of Jeremie Passerin Hi List, |
- Follow-Ups:
- Re: Register Operator... How to deal with Ports.
- From: "Jeremie Passerin" <gerem.xsi(at)gmail.com>
- Re: Register Operator... How to deal with Ports.
- References:
- Register Operator... How to deal with Ports.
- From: "Jeremie Passerin" <gerem.xsi(at)gmail.com>
- Register Operator... How to deal with Ports.
| DATE: | << | >> | THREAD: | << | >> | INDEX: | Main | Thread |
|---|
- Previous by Date: camera animation export again...... C4D to XSI
- Next by Date: camera animation export again...... C4D to XSI
- Previous by Thread: camera animation export again...... C4D to XSI
- Next by Thread: camera animation export again...... C4D to XSI
- Index(es):
| Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available. |