To Bind a hand-held weapon to a mesh (when the mesh is a single mesh as UE4 requires) keep the bones SEPARATE (unparented) when you first bind, then parent the bones together AFTER mesh bind. This prevents mesh pieces from different weapons from receiving influence from bones intended for different meshes.
I found this problem coming up after I:
* Had a mesh that I wanted to adjust
* Detached skin & adjusted the mesh by moving faces
* MOVED/ROTATED A CONTROLLER which had Orient Constraints & Point Constraints on a bone for the mesh
* Tried to re-bind the bones & skin, which caused the error
The solution was: Delete the moved controller, then delete any IK handles upstream of the moved controller (maybe even all of them).
When creating an animation of a cloth for example, you may like to take a snapshot of one frame and save it into the mesh.
To do that you use Animate / Create Animation Snapshot. …
The settings that work for cloth are:
Start Time: Whatever
End Time: Whatever
Update: FAST (update only when keyframes change)
If you use On Demand or Slow Updates, the animation snapshot won’t work for cloth
All objects in Maya are actually accessible by string.
So when you type
$var = `select -r objectName1`;
Maya will select that object in the viewport.
But $var doesn’t contain anything but a string! It just contains the string name for the current selection.
To iterate in maya, you need to use the polyEvaluate function, which retrieves things like the NUMBER of faces or vertices a polygon has.
Access of individual members of the polygon is by string:
It turns out that the .vtx, .f, and .map are NOT objects. They don’t have a .size() member or anything, they’re just “string addresses”. When you address polyName.f, that’s the first face in the mesh. You have to pass the string address to a function to use it though.
Declaring arrays with a leading 0 doesn’t work.