Hi Ben, I suggest that you don't use a single vmtkrenderer, to make things easier for you
vmtksurfaceclipper -ifile Inputfile1.vtp -ofile OutputFile1.vtp --pipe vmtksurfaceclipper -transform @.otransform -ifile InputFile2.vtp -ofile OutputFile2.vtp So, launch, first rendering window, press 'i', move the box, press 'space' to clip, press 'q' to proceed, now you'll see a new window with the new model and the box already shown, in the same position and orientation as you defined it in the first clipper - just press 'space' to clip and 'q' to end the pipe. Let me know if this procedure works on your side. Best regards Luca On Jan 11, 2012, at 8:05 PM, Dickerhoff, Benjamin R wrote: > Luca: > > I have added the script to the lib/vmtk/vmtk directory. I tried to run the > vmtksurfaceclipper using pypepad with two surfaces. I'm not sure if my syntax > in Pypepad is wrong, or if there is some greater problems that I have from > adding the python script to my lib/vmtk/vmtk directory. Below is the script > that I used in Pypepad to try and run the code: > > vmtkrenderer --pipe vmtksurfaceclipper -ifile Inputfile1.vtp -ofile > OutputFile1.vtp --pipe vmtksurfaceclipper -transform @.otransform -ifile > /InputFile2.vtp -ofile /OutputFile2.vtp > > Is this the correct syntax for using this script for multiple models that I > want to clip with the same clipping widget? > > Thanks, > Ben > > ________________________________________ > From: Luca Antiga [luca.ant...@orobix.com] > Sent: Wednesday, January 11, 2012 2:41 AM > To: Dickerhoff, Benjamin R > Cc: vmtk-users@lists.sourceforge.net > Subject: Re: [vmtk-users] Using vmtksurfaceclipper for multiple surface models > > Hi Ben, > in your case just take the script and copy it to the lib/vmtk/vmtk directory > in your vmtk installation, it should work out of the box. > Let me know > > Luca > > > > On Jan 9, 2012, at 9:27 PM, Dickerhoff, Benjamin R wrote: > >> Luca: >> >> I'm not exactly sure how this is done. Do we need to re-build VMTK, and >> subsequently ITK and VTK? Or, is this as simple as copying the python script >> into the vmtk library? >> >> I will need instructions for both how to build vmtk and how to incorporate >> the new script into my vmtk installation. >> >> Thanks for your time, >> Ben >> ________________________________________ >> From: Luca Antiga [luca.ant...@orobix.com] >> Sent: Tuesday, December 20, 2011 7:38 AM >> To: Dickerhoff, Benjamin R >> Cc: vmtk-users@lists.sourceforge.net >> Subject: Re: [vmtk-users] Using vmtksurfaceclipper for multiple surface >> models >> >> Dear Ben, >> there is currently no way of passing the widget transform between scripts. >> Where, there wasn't until a few minutes ago, because I just implemented it. >> Here is the commit: >> https://github.com/lantiga/vmtk/commit/5edebc75429110189eeb4b31c3387156be82825b >> >> and here is the new file >> >> https://github.com/lantiga/vmtk/blob/5edebc75429110189eeb4b31c3387156be82825b/vmtkScripts/vmtksurfaceclipper.py >> >> Let me know if you need instructions on how to build vmtk or simply >> incorporate the new script in your vmtk installation. >> >> Best regards >> >> >> Luca >> >> >> On Dec 16, 2011, at 1:07 AM, Dickerhoff, Benjamin R wrote: >> >>> I am using vmtksurfaceclipper to isolate an aneurysm from its parent >>> vessel. Is there a way to use the same cutting plane for two separate >>> surface files? For example, I want to look at aneurysm morphology over a >>> period of time. If I have surface models for two time points of the same >>> aneurysm, where the second one has been registered to the first surface >>> model, can I use vmtksurfaceclipper to isolate the first aneurysm from its >>> parent vessel and then apply that exact same cutting plane to isolate the >>> aneurysm in the second surface model? I appreciate any help/ advice you >>> might be able to offer in working around this issue. >>> >>> Thanks, >>> Ben Dickerhoff >>> ------------------------------------------------------------------------------ >>> Learn Windows Azure Live! Tuesday, Dec 13, 2011 >>> Microsoft is holding a special Learn Windows Azure training event for >>> developers. It will provide a great way to learn Windows Azure and what it >>> provides. You can attend the event by watching it streamed LIVE online. >>> Learn more at http://p.sf.net/sfu/ms-windowsazure >>> _______________________________________________ >>> vmtk-users mailing list >>> vmtk-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/vmtk-users >> >> >> ------------------------------------------------------------------------------ >> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex >> infrastructure or vast IT resources to deliver seamless, secure access to >> virtual desktops. With this all-in-one solution, easily deploy virtual >> desktops for less than the cost of PCs and save 60% on VDI infrastructure >> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox >> _______________________________________________ >> vmtk-users mailing list >> vmtk-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/vmtk-users > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users