Installation (MS Windows):You need to install regex Python module first. To do this, first make sure that your PATH environment variable points to “C:\Program Files\Side Effects Software\Houdini 15.0.244.16\python27;”. Double check if it works by typing “python” in the command line. If it launches Python that ships with Houdini, you're good to go.
Download pip installer (get-pip.py) from this URL:
https://pip.pypa.io/en/latest/installing/ [pip.pypa.io]
Start command line as an administrator and navigate to directory containing get-pip.py. Type python get-pip.py and wait for it to download and install.
Once it completes, go to “C:\Program Files\Side Effects Software\Houdini 15.0.244.16\python27\Scripts\” and run “pip install regex”.
Now, exit the command line, and go to “%USERPROFILE%\Documents\Houdini15.0” and create “python2.7libs” directory if it doesn't exist yet. Extract contents of the archive into it (you can create a subfolder if you wish to).
Start Houdini and create a new shelf button. Type-in or paste the following text into “script” section:
import blend_shapes_fix
reload(blend_shapes_fix)
blend_shapes_fix.main()
or if you have extracted the script to a subfolder:
import somefolder.blend_shapes_fix
reload(somefolder.blend_shapes_fix)
somefolder.blend_shapes_fix.main()
Just replace “somefolder” with appropriate folder name.
That's it.
Usage:Set-up your blend shapes network. For now the script supports point normals only so make sure that all your blend shape poses have them. Otherwise the script will fail.
First you need to save your scene as an FBX 2014 ASCII file. Then, select the blendshapes SOP that you wish to export and press the shelf button you have created.
A file chooser window will show up where you need to select the FBX file you have just exported. The script will read and process its contents and save the result in $HIP/test.fbx (the filename and path is hardcoded for now, but you can change it by editing line 79). Load this file in UE4 as skeletal mesh. Make sure to mark “Import Morph Targets” flag.
Known Problems and Limitations:- When “Normal Input Method” is set to “Import Normals” or “Import Normals and Tangents”, strange artifacts may appear on the mesh (see the image). I will need to investigate this.
- At the moment only point normals are supported and teir presence is mandatory. This is a subject of a future change.
- The script might be slow for larger FBX files. I didn't have time to optimize it.
WARNING!The script is in a very early, relatively untested version. Therefore it might crash of fail if it meets unexpected FBX structure. I couldn't find any official documentation of FBX so I cannot prevent such things from happening. However, I can fix them. So please report any problems with the script in this thread along with error messages and traceback stacks.
DO NOT USE THE SCRIPT IN PRODUCTION! You use the script at your own risk.
Downloadhttp://download.arturjzarek.com/blend-shapes-fix_v0.5.zip [
download.arturjzarek.com]