Import and export files in ASCII format

   1482   3   1
User Avatar
Member
22 posts
Joined: Jan. 2023
Offline
Hi, it's the first time I'm using Houdini Apprentice, specifically the L-System functions to model the growth and morphology of plants, and I wanted to know if you can import the rules in ASCII format. And after modelling and finishing the plant in 3D export it in ASCII format.

Thank you.
User Avatar
Member
7741 posts
Joined: Sept. 2011
Offline
roedbo
And after modelling and finishing the plant in 3D export it in ASCII format.

You can export geometry files as ASCII text, but what format do you need? There are several formats that use ASCII, Houdini native (.json/.geo, .hclassic), wavefront (.obj), .ply, USD (.usda), FBX ascii, and probably some others I don't remember.
User Avatar
Member
205 posts
Joined: Dec. 2009
Offline
If I understand you correctly, you want to

1. read a text file and extract a portion of it into the rules parameter field.

2. append the rules parameter's string to a text file.

This can be done with python expressions. If you are familiar with python, this is quite easy. If not (and since you're new to Houdini), this route could be quite challenging, I suppose.
User Avatar
Member
27 posts
Joined: Jan. 2022
Offline
For the export part, you might want to take a look at the "Labs CSV Exporter", it is available in the OUT context (render nodes): https://www.sidefx.com/docs/houdini/nodes/out/labs--csv_exporter.html [www.sidefx.com]
Houdini Indie / Windows
"Art exists so that reality does not destroy us" - Friedrich Nietzsche
  • Quick Links