Export .obj with Python

   2191   2   0
User Avatar
Member
22 posts
Joined: Jan. 2023
Offline
Hi, I'm a newbie in Houdini. I would like to know some code to export the nodes created by Lab Tree Tools with .obj format in pyhton. As a whole and if possible for each node (tree trunk, branches, leaf...) as shown in the following image:

Attachments:
Olivo.png (1.2 MB)

User Avatar
Member
22 posts
Joined: Jan. 2023
Offline
Can someone give me an idea of how to export automatically by python code the trees with the .obj format?

thanks
User Avatar
Member
40 posts
Joined: Sept. 2014
Offline
To ask the obvious, why not use a rop node to export the object as a .obj file? I thought you were able to export objs when using apprentice.

To contribute to your answer, there's no python function that i can see in the documentation that exports a .obj file. but this link may help you.
https://www.sidefx.com/forum/topic/44209/?page=1#post-198042 [www.sidefx.com]
When i tried it, it was only able to save the points of the model not the prims. Maybe you can use the code here as a starting point.
  • Quick Links