A python script to convert a sequence of obj files to a .pc2 file. This allows exporting animated geometry from Houdini into 3D Studio Max. This only works for deforming geometry where the point count does not change (won't work for particles!)
Usage: obj_2_pc2.py [-h] [-s startframe] [-o outfile.pc2] [-r] [-f samplerate] objfile .. objfile_n
Convert a series of obj files to a single .pc2 file
Command line options:
h - show help on usage
o - provide output .pc2 filename, default is constructed from first obj file
s - provide start frame for .pc2 header, default is 1
f - provide sample rate for .pc2 header, default is 1
r - do not rotate, (x,y,z) does not become (x,-z,y)
Examples:
$ obj_2_pc2.py myobjs.*.obj
$ obj_2_pc2.py -r myobjs.*.obj
$ obj_2_pc2.py -s 101 -f 2 -o sample_rate_of_2.pc2 myobjs.*.obj
Quickstart:
1/ export your sequence as objs with a Rop Output Driver Sop.. make sure you used padded file numbers (eg. myobjs.$F4.obj)
2/ run the obj_2_pc2.py script passing those objs as arguments.. (eg obj_2_pc2.py myobjs.*.obj)
3/ Import the first obj into max
4/ fix the geometry up (add Normal modifier and smooth modifier with auto-smooth)
5/ attach the myobjs.pc2 point cloud to the imported geometry with the following plugin:
http://maxplugins.de/max8.php?search=pointcache&sort=Author