Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Omit operator port connections (Was: What is one feature you 'd love to see i

Omit operator port connections (Was: What is one feature you 'd love to see i

2004-08-17       - By Guy Rabiller

 Back
Reply:     1     2  

Hey Felix,

it depends if you use scripted or compiled operators.

If it is for scripted operators, then as they support run-time creation, you
can use the CustomOperator method "AddPortGroup".
You have the Min and Max arguments, if you set Min=0, then this PortGroup is
optional.
The use the "ConnectToGroup" method.
( check the CustomOperator object in the scripting doc for more details ).

For compiled operators, first you have to add to your spdl, in a Group
section the Min and Max tokens:

Group "Group_2"
{
   Origin = Pick;
   PickMessage = "Pick CustomPSet";

   Input "InPSet"
   {
       Major = {9E04FCEE-10 (See http://CEE-10.ora-code.com)F3-11D0-943A-00AA006D3165};
       Minor = {76332575-D242-11D0-B69C-00AA003B3EA6};
       Interface = {00000000-0000-0000-C000-000000000046};
   }

   Min = 0;
   Max = Infinite;
}

Here the PortGroup is optional and accept an infinite number of connections.

Then from C++, to connect items to PortGroups, you also have to use the
"ConnectToGroup" method.
Unfortunately, this method is not exposed to the CPP SDK, so you will have
to use the ComAPIHandler:
// oOp is a CustomOperator
// lGroup the PortGroup index
// oRef the CRef to the item being connected
CValue      outArg;
CValueArray args(0);
args.Add( lGroup );
args.Add( oRef   );
CComAPIHandler comOp( oOp.GetRef() );
comOp.Invoke( L"ConnectToGroup",CComAPIHandler::Method, outArg, args );

Hope this helps.
--
guy rabiller | 3d technical director @ LaMaison


-- -- Original Message -- --
From: "Felix Gebhardt" <gebhardt@(protected)>
To: <XSI@(protected)>
Sent: Tuesday, August 17, 2004 12:22 PM
Subject: Omit operator port connections (Was: What is one feature you'd love
to see in the next version of XSI ?)


> Sorry to bring up this topic again but as I understand it the option to
omit
> port connections does work now. Just I can't find it anywhere in the docs.
> How is it done? Anybody came by it somewhere?
>
> F.
>
> Guy Rabiller wrote:
> > Another reason why this kind of graph could be usefull: Custom
> > development. With the ability now to create custom operators with
> > optional ( and multiple instances ) PortGroup connections, ...
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
> unsubscribe xsi
>
>



---
Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi