groups to polygroups

   1194   2   1
User Avatar
Member
2 posts
Joined: Feb. 2018
Offline
does anyone know how to convert a primative group into a polygroup and export? been searching the net without success
User Avatar
Member
2529 posts
Joined: June 2008
Offline
I have not tried it in Houdini 17, but in previous versions, the .OBJ export did not support that. There is a script that leverages the Post-Write event field of the export ROP. Place the code in the script field, change the code type to Python and when the export is issued, the code will re-write the resulting .OBJ file to produce a new .OBJ file with material assignments for detected groups. These materials are generally what importers look for.

https://forums.odforce.net/topic/25214-post-processing-an-export/?do=findComment&comment=146948 [forums.odforce.net]
Edited by Enivob - Nov. 12, 2018 22:03:50
Using Houdini Indie 20.0
Ubuntu 64GB Ryzen 16 core.
nVidia 3050RTX 8BG RAM.
User Avatar
Member
2 posts
Joined: Feb. 2018
Offline
Well it completely failed to work until i realized I was parsing as a hscript, rather than python as you instructed.

So now it works 100%perfectly.

Immense thanks for your help/script!

Attachments:
sCapture.JPG (98.8 KB)

  • Quick Links