<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey Stephane,<div><br></div><div>It comes close to working for me if I do the Custom Filter thing, but not quite -- what problems are you seeing if you try to do this?</div><div><br></div><div>When I'm trying to create a Custom Filter out of the sources & filters you specified (no inputs, append filter output and exposing the text entry line edits in the panel) I get an error when I hit Finish:</div><div><br></div><div><div>Warning: In /Users/emonson/Programming/ParaView_git/ParaView/Servers/ServerManager/vtkSMProxy.cxx, line 1451</div><div>vtkSMCompoundSourceProxy (0x120fe05f0): Proxy AppendDatasets1 already exists. Replacing</div><div><br></div><div>And then when I try to load this custom filter (really a source) from an exported .cpd file in Python and use it, the 0 and 1 actually show up in the 3D view, but nothing shows up in the Pipeline Browser and I get this error:</div><div><br></div><div><div>Representation could not locate the pqPipelineSource object for the input proxy. </div></div><div><br></div><div>If I try to use this custom source from the Sources menu, I get these errors:</div><div><br></div><div>ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 727<br>vtkCompositeDataPipeline (0x11c4b2270): Input port 0 of algorithm vtkAppendFilter(0x11c4b0fe0) has 0 connections but is not optional.<br><br></div><div>ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkExecutive.cxx, line 756<br>vtkCompositeDataPipeline (0x11c4b4780): Algorithm vtkTransformFilter(0x11c4b2380) returned failure for request: vtkInformation (0x11c61d360)<br>Debug: Off<br>Modified Time: 74590<br>Reference Count: 1<br>Registered Events: (none)<br>Request: REQUEST_DATA_OBJECT<br>ALGORITHM_AFTER_FORWARD: 1<br>FORWARD_DIRECTION: 0<br><br></div><div>ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkExecutive.cxx, line 756<br>vtkCompositeDataPipeline (0x11c4b5cf0): Algorithm vtkTransformFilter(0x11c4b3e10) returned failure for request: vtkInformation (0x11c61e6d0)<br>Debug: Off<br>Modified Time: 74601<br>Reference Count: 1<br>Registered Events: (none)<br>Request: REQUEST_DATA_OBJECT<br>ALGORITHM_AFTER_FORWARD: 1<br>FORWARD_DIRECTION: 0<br></div><div><br></div><div>but the digits show up in the 3D view and after that I can change the text, etc.</div><div><br></div><div>I get similar behavior if I try to make a Custom Source out of a Cone plus a Sphere and an Append Datasets filter, but no Transform filters (same "Proxy AppendDatasets1 already exists" and "vtkAppendFilter has 0 connections but is not optional" errors as above), so there may just be some sort of bug with trying to use an Append filter in a Custom Source...?</div><div><br></div><div>I also get the same behavior and same "Representation could not locate the..." error even when trying to display a very simple (a customized cone) custom source from Python (even though this one works fine from the Sources menu). Maybe problems with Custom Sources from Python, too...?</div><div><br></div><div>Talk to you later,</div><div>-Eric</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div>------------------------------------------------------</div><div>Eric E Monson</div><div>Duke Visualization Technology Group</div><div><br class="webkit-block-placeholder"></div></span></div><br><div><div>On Jul 9, 2010, at 10:22 AM, Stephane PLOIX wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<br><font size="2" face="sans-serif">Hi,</font>
<br>
<br><font size="2" face="sans-serif">I have made a script that creates a
bunch of sources and filters (to use as legends), and finishes by an append
filter to which everything is appended. </font>
<br><font size="2" face="sans-serif">Only this last append filter has a representation.</font>
<br><font size="2" face="sans-serif">I would like to have only one entry
in the pipeline browser for the last append filter, and completely hide
the steps used to create the legend, is it possible from python?</font>
<br><font size="2" face="sans-serif">If I try to encapsulate all this in
a custom filter to show only the append filter as output, it does not work
either.<br>
</font>
<br><font size="2" face="sans-serif">Thanks,</font>
<br><font size="2" face="sans-serif">Stephane<br>
</font>
<br><font size="2" face="sans-serif">typical script : </font>
<br>
<br><font size="2" face="sans-serif">text0 = a3DText()</font>
<br><font size="2" face="sans-serif">text0.Text = "0"</font>
<br><font size="2" face="sans-serif">trans0 = Transform()</font>
<br><font size="2" face="sans-serif">trans0.Transform = "Transform"</font>
<br><font size="2" face="sans-serif">trans0.Transform.Scale = [1, 1, 1]</font>
<br><font size="2" face="sans-serif">trans0.Transform.Translate = [0, 0,
0]</font>
<br>
<br><font size="2" face="sans-serif">text1 = a3DText()</font>
<br><font size="2" face="sans-serif">text1.Text = "1"</font>
<br><font size="2" face="sans-serif">trans1 = Transform()</font>
<br><font size="2" face="sans-serif">trans1.Transform = "Transform"</font>
<br><font size="2" face="sans-serif">trans1.Transform.Scale = [1, 1, 1]</font>
<br><font size="2" face="sans-serif">trans1.Transform.Translate = [1, 0,
0]</font>
<br>
<br><font size="2" face="sans-serif">append = AppendDatasets( Input=[trans0,
trans1] )</font>
<br><font size="2" face="sans-serif">pres = Show(append)</font>
<br>
<table>
<tbody><tr valign="top">
<td rowspan="2"><font size="2" face="sans-serif"> </font><span><Mail Attachment.gif></span><font size="2" face="sans-serif">
</font>
</td><td><font size="1" face="sans-serif"> </font>
</td></tr><tr valign="top">
<td><font size="1" color="#ff8100" face="Arial"><b>Stephane PLOIX</b></font><font size="1" color="#ff8100" face="Arial"><b><br>
Pilote Opérationnel - Visualisation scientifique</b></font><font size="1" color="#0062e1" face="Arial"><br>
EDF - R&D<br>
SINETICS<br>
1, Av du Général de Gaulle<br>
92140 Clamart</font><font size="1" color="#0062e1" face="sans-serif"><br>
</font>
<br><font size="1" color="#0062e1" face="Arial"><b><a href="mailto:stephane.ploix@edf.fr">stephane.ploix@edf.fr</a></b></font>
<br><font size="1" color="#0062e1" face="Arial">Tél. : +33 (0) 1 47 65 51
10</font>
</td></tr><tr>
<td valign="top"><font size="2" face="sans-serif"> </font><span><Mail Attachment.gif></span><font size="2" face="sans-serif">
</font>
</td><td><font size="1" color="#0062e1" face="Arial">Un geste simple pour l'environnement,
n'imprimez ce message que si vous en avez l'utilité.</font></td></tr></tbody></table>
<br><pre>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre>_______________________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote></div><br></div></body></html>