Hey Stephane,

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?

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:

Warning: In 
/Users/emonson/Programming/ParaView_git/ParaView/Servers/ServerManager/vtkSMProxy.cxx,
 line 1451
vtkSMCompoundSourceProxy (0x120fe05f0): Proxy AppendDatasets1 already exists. 
Replacing

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:

Representation could not locate the pqPipelineSource object  for the input 
proxy. 

If I try to use this custom source from the Sources menu, I get these errors:

ERROR: In 
/Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkDemandDrivenPipeline.cxx,
 line 727
vtkCompositeDataPipeline (0x11c4b2270): Input port 0 of algorithm 
vtkAppendFilter(0x11c4b0fe0) has 0 connections but is not optional.

ERROR: In 
/Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkExecutive.cxx,
 line 756
vtkCompositeDataPipeline (0x11c4b4780): Algorithm 
vtkTransformFilter(0x11c4b2380) returned failure for request: vtkInformation 
(0x11c61d360)
Debug: Off
Modified Time: 74590
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0

ERROR: In 
/Users/emonson/Programming/ParaView_git/ParaView/VTK/Filtering/vtkExecutive.cxx,
 line 756
vtkCompositeDataPipeline (0x11c4b5cf0): Algorithm 
vtkTransformFilter(0x11c4b3e10) returned failure for request: vtkInformation 
(0x11c61e6d0)
Debug: Off
Modified Time: 74601
Reference Count: 1
Registered Events: (none)
Request: REQUEST_DATA_OBJECT
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0

but the digits show up in the 3D view and after that I can change the text, etc.

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...?

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...?

Talk to you later,
-Eric

------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group


On Jul 9, 2010, at 10:22 AM, Stephane PLOIX wrote:

> 
> Hi, 
> 
> 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. 
> Only this last append filter has a representation. 
> 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? 
> If I try to encapsulate all this in a custom filter to show only the append 
> filter as output, it does not work either.
> 
> Thanks, 
> Stephane
> 
> typical script : 
> 
> text0 = a3DText() 
> text0.Text = "0" 
> trans0 = Transform() 
> trans0.Transform = "Transform" 
> trans0.Transform.Scale = [1, 1, 1] 
> trans0.Transform.Translate = [0, 0, 0] 
> 
> text1 = a3DText() 
> text1.Text = "1" 
> trans1 = Transform() 
> trans1.Transform = "Transform" 
> trans1.Transform.Scale = [1, 1, 1] 
> trans1.Transform.Translate = [1, 0, 0] 
> 
> append = AppendDatasets( Input=[trans0, trans1] ) 
> pres = Show(append) 
>  <Mail Attachment.gif>         
> Stephane PLOIX
> Pilote Opérationnel - Visualisation scientifique
> EDF - R&D
> SINETICS
> 1, Av du Général de Gaulle
> 92140 Clamart
> 
> stephane.pl...@edf.fr 
> Tél. : +33 (0) 1 47 65 51 10
>  <Mail Attachment.gif>        Un geste simple pour l'environnement, 
> n'imprimez ce message que si vous en avez l'utilité.
> 
> 
> 
> 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.
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to