Jump to content

Python Sop - load external geometry file


dandandan

Recommended Posts

Hi I'm trying to implement meshlabserver script in Houdini to process multiple pointcloud sequences with poisson reconstruction.

I got it working with this code, that read a ply file (created upstream with a filecache sop) and output a new ply file temp_out_$F.ply after applying a meshlab script.

Obviously the python sop passes to the next node the geo that receives form its input, which is the unprocessed -filecached- one. How can I clear the geometry and load the geo from the processed ply file (temp_out_$F.ply) inside the python sop?

thanks for any kind of help!

node = hou.pwd()
geo = node.geometry()
import os
os.system('C:/Programmi/VCG/MeshLab/meshlabserver -i C:/temp_in.ply -o C:/temp_out_$F.ply -m vc -s C:/poisson_sa_da_base.mlx -l C:/log.txt' )
 

Edited by dandandan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...