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?
 
Multiple Output Ports in CPP

Multiple Output Ports in CPP

2005-04-04       - By Martin Matzeder

 Back
Reply:     1     2     3     4     5  

Doesn't matter, I'm glad that I have the name now.

Martin


Aloys Baillet wrote:

> Indeed, switch cannot work with custom classes... sorry for the
> misleading info!
> You will have to do some if /else ...
>
> On Apr 4, 2005 5:58 PM, *Martin Matzeder*
> <puppet_martin@(protected)
> <mailto:puppet_martin@(protected)>> wrote:
>
>     Thank You,
>
>     but I get this error at compilation time:
>
>     f:\!Coding\first_operator\weightmap_only\weightmap_only\weightmap_only
.cpp(98):
>     error C2450: switch expression of type 'XSI::CString' is illegal
>
>     Martin
>
>     Aloys Baillet wrote:
>
>     > Hi Martin,
>     >
>     > Here is the name you are looking for...
>     >
>     > CStatus ClmCacheMapOp::Update
>     > (
>     >     UpdateContext&    ctx,
>     >     OutputPort&        Out
>     > )
>     > {
>     >     CStatus hr = CStatus::OK ;
>     >     CString outName( Out.GetName() );
>     >     switch (outName)
>     > your code!
>     > }
>     >
>     >
>     >
>     > On Apr 4, 2005 4:46 PM, *Martin Matzeder*
>     > <puppet_martin@(protected)
>     <mailto:puppet_martin@(protected)>
>     > <mailto:puppet_martin@(protected)
>     <mailto:puppet_martin@(protected)>>> wrote:
>     >
>     >     Hi,
>     >
>     >     I'm translating a operator from jsript to cpp. Right now I
>     face the
>     >     problem to feed multiple output connections. In jscript I
>     used the
>     >     switch/case statement to get the correct output. but I have no
>     >     clue what
>     >     to test in cpp, cause i can see no "name" in the outputport. In
>     >     scripted
>     >     operators the update routine is called for each output port,
>     and I
>     >     guess
>     >     this is the same for a compiled operator.
>     >     What is the correct way to achieve this in cpp.
>     >
>     >     Martin
>     >     ---
>     >     Unsubscribe? Mail Majordomo@(protected)
>     <mailto:Majordomo@(protected)>
>     >     <mailto:Majordomo@(protected)
>     <mailto:Majordomo@(protected)>> with the following text in body:
>     >     unsubscribe xsi
>     >
>     >
>     >
>     >
>     > --
>     > Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr
>     <http://www.alamaison.fr>
>     > <http://www.alamaison.fr>
>
>     ---
>     Unsubscribe? Mail Majordomo@(protected)
>     <mailto:Majordomo@(protected)> with the following text in body:
>     unsubscribe xsi
>
>
>
>
> --
> Aloys Baillet - TD / R&D @ La Maison - www.alamaison.fr
> <http://www.alamaison.fr>


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