VertexAnimationTools for Maya (WIP - Nearly Completed)

I don’t have the time (or energy) to complete this, it is a conversion of Jonathan Lindquist’s VertexAnimationTools Maxscript for Maya.

Because it’s very close to completion and has a few chinks left I figured I would post it in case someone wants to finish it, I’m only releasing this now because I’ve decided I wont be investing more time into it. If I remember correctly the last issue it had was the vertex positions were out of place in UE4.

If you complete it leave the credit lines in and please release for the public, thanks.

What the the chinks? List of bugs, etc…

Also, I see you are from tech-artists.org forum, did you post it there as well? Prolly a good spot too.

Couldn’t say, if someone used the script then the chinks would be apparent in the result in UE4.

I know a couple of people who would like some compression-extension in their animation. I think it would require much more work though. The ART tools are not even 100% complete and bug-free yet (especially with student versions). Vertex animation would require rebuilding half if not all the animation system in Unreal Engine while ensuring compatibility with the previous skeletal-animation system :frowning: .

You’re probably confusing this with something else. It’s already fully supported and has been for years, there’s a maxscript, this is a translation of sorts for Maya

It’s supported in-engine with all the physics etc?

Hi, thanks for your work on this, I am attempting to get your code running, but it will not launch the UI when I run it in the script editor.
I drag VertexAnimationTools.py into the script editor, add the path to the other files with sys.path.append, and execute the code. It does not error, but I get no UI.
Am I missing something?

Thanks!

Are you calling the UI class?

The shelf button I use looks like this:


import VertexAnimationTools
VertexAnimationTools.UI()

Sorry for the late reply, got the email notification while half asleep and marked it as read without noticing! I’ve had the feeling I had forgotten something for a while now.

ah, thank you! I was setting my sys.path inside the code, when I should have been doing it at the UI class call. doh. :slight_smile:

Thanks again for the code!

I think one problem is in the pack_vert_uvs function - using the UV index to lay out the UVs rather than the vertex index. I got better results when I changed the line…


cm.polyEditUV(mesh + ".map" + str(i) + "]", u=current_position, v=.501961, r=0)

to…


cm.polyEditUV(mesh + ".map" + cm.polyListComponentConversion(mesh+".vtx%d]"%i, fv=True, tuv=True)[0].split("")-1]:-1] + "]", u=current_position, v=.501961, r=0)

Hi Vaei…have u VAT maxscript…[vertexanimationtools.ms]…
i wanna try it in 3dsmax. i can’t maya.;( Thank you

FYI, for those of you who wanted to try this but were confused how to install:

Run this in a python SE (Maya) after changing the path line to your file location:


import sys
import os

change to your own computer location

path = os.path.normpath( ‘C:\Users\pault\Downloads’ )

if path not in sys.path:
sys.path.append( path )

import VertexAnimationTools
VertexAnimationTools.UI()

Hi

I am trying to fix this script.

1.Apply bryan_smyth’post
2.Add swap y-up and z-up
3.Add swap R and B In RGB(on EXR file)
4.Change Normal Texture to PNG from EXR
5.Add Vertex Number Check after calling polyTriangulate()
6.Add ProgressBar

As a result,

1.maya’s primitive is OK. (cube,sphere,torus,platonic,SuperShape)
2.Simple Charactor Model is OK.
3.Complex Charactor Model is NG.

I think NG reason is maybe high number of vertices (and lack of normal precision). but I don’t know how to fix.

If anyone knows how to fix it, please fix it.

I’m Japanese, sorry if you have a strange English.

update script.

7.Delete cm.polyColorPerVertex(). Maybe no need in Maya

update script.

8.Bug fix in selecting multiple mesh.

The current state is

A.Simple Charactor Model is OK.
B.Normal Charactor Model is OK. ( 2000 vertices )
C.Complex Charactor Model is NG. ( maybe lack of UV precision )

update script.

9.Move polyTriangulate() to the after of polySoftEdge().
10.Implemented new function [Base Frame] for character T-Pose.(Support multiple animation with one mesh)
11.Clean up script.

The current state is
In my team, Most mesh are working correctly with the following notes.

A.Don’t use hard edges. Make with soft edges only.

B.Don’t use the following.
non-manifold polygonal geometry
Lamina Face

C.Using [Base Frame] function.

I supplement about C.

If neither A nor B works, try [Base Frame] (even if model is not character)
At that time, assign middle or end as base frame


Another way to use [Base Frame] is to use it for a model whose initial scale is 0.
Because if the initial scale is 0, an error will occur during execution.

It looks like it’s been deleted, so I’ll re-upload it.

VertexAnimationTools_Maya.zip (7.2 KB)