Vertex Keyframe Trasfer
Friends need help with this script.
This script creates boxes at each vertex of the object pick and trasnfiere keyframes of each vertex to each box set. (eye, the script is not mine, I copy a page of examples)
I need help to make some changes, please:
1-select only the vertices I want to use and save it in an array.
2-create a copy of a selected object in each vertex that is in the array and transfer your keyframes.
rollout A1 "Animated Vertex" ( button B3 "Pick Object" on B3 pressed do ( local boxSize = 1 local frameStepping = 2 ------------------------------------------------------- local obj = selection[1] if isValidNode obj do ( local tMesh = obj.mesh local boxes = for i=1 to tMesh.numVerts collect box width:boxSize height:boxSize length:boxSize with animate true for t=animationRange.start.frame to animationRange.end.frame by frameStepping do at time t for i=1 to tMesh.numVerts do boxes[i].pos=((getVert obj.mesh i)*obj.transform) ) ) )
Comments
...
At least you can bake transform animation. You need different aproch if you want .fbx or .obj sequence export, but KeyShot probably not support that.
bga
*.ms :{
Or just download script
Cheers!
edit:
I edited the code and now if you select verts (just add mesh_select modifier over cloth modifier and select some verts) boxes will be created only on selected verts
or if nothing is selected then all verts are counted.
bga
barigazy sorry to bother you
barigazy
sorry to bother you again.
you could do that instead of creating a box at each vertex, another object is created,pick of the scene.
example
pickbutton (pick animated object)
pickbutton (pick object to create)
and deleting box creating in the the code , please
no more...
Here is part2 :)
Now u can pick target object.
bga
Infinite thanks is exactly
Infinite thanks
is exactly what I wanted,
you are a master
my pleasure.
my pleasure.
bga
barigazy sorry to bother you
barigazy
sorry to bother you again.
you could do that instead of creating a box at each vertex, another object is created,pick of the scene.
example
pickbutton (pick animated object)
pickbutton (pick object to create)
and deleting box creating in the the code , please
no more...
This is your script
bga
solution
You may want to consider this approach. After this u can bake boxes animations
bga
Excuse my ignorance
Excuse my ignorance if not understood.
Your script creates a crazy ball automatically :), but I want it to an object in the scene with cloth modifier, I do not understand how I can do what I want with it.
example:
If I have a plane with the cloth modifier and bake animation (vertex with keyframe) and an object.
As I can do to duplicate the object at each vertex of the plane and take your keyframe.
The problem is that I have only one week learning maxscript and I have no idea how to make changes, help :(