AutoKey - Animation Converter(Dev)
Hi, i'm trying to remake AutoKey script, it's currently able to copy from one object to another - exact same XYZ position key's.
But problem is that i have a rigged skeleton with animation and it has about 30+ bones and script can't work with more then 2 objects( 1 without anim and 2 with anim)
This is what i was able to do
on alignSource pressed do ( ( sticks = #() append sticks $ ) for i = 1 to sticks.count do (global object1 = sticks[i] objNames = for obj in selection collect obj.name objNames = makeUniqueArray objNames uniObjs = objNames as string AlignSource.text = uniObjs ) ) on alignDest pressed do ( ( vecs = #() append vecs $ ) for i = 1 to vecs.count do (global object2 = vecs[i] objNames = for obj in selection collect obj.name objNames = makeUniqueArray objNames uniObjs = objNames as string alignDest.text = uniObjs ) ) )
The result is same(working with 1 selecetion on each menu) only change is that http://i.shotnes.com/a/09/zw1rkbus.ko3_522e5062a76e4.png
object's that where seleceted are displaying in text box.
But if there is more then 2 objects selected i get this error.
If you can help with it please, i waisted a lot of time on this issue and ruined a project because of time it taked.
Comments
...
First of all to collect objects in arr1 or arr2 u cal simply use
Now check if arr1 and arr2 count is greater then zero and if both count are equal.
Then you can use this fn to copy separately pos, rot or scale keys.
This is your tool
bga
...
How it works:
Select in order all animated objects in the scene and press "Collect Animated Objects". The same rule applies to static objects. Red and green progresbar shows that you are collected all objs that you need for now.
Check which controller keys you need to transfer (pos , rot , scale checkboxes) and press "Transfer Keys" button.
NOTE: Only controllers that contains animated keys will be transfered. Open Track Editor and see for yourself.
Cheers!
bga
Thx a lot barigazy,
Thx a lot barigazy, unfortunately it doesnt work for bones http://i.shotnes.com/a/17/orxbtoyj.io3_5237e7c744b44.png
these bones doesnt show keys in track view.
I'm trying to adopt your script for old one, which aligns pos and create keys, will give you video if i'l make it - thx a lot.
...
I know. I created the tool for your last example. Bones will never works with this method.
bga
Is it hard to make some
Is it hard to make some count'er for this part of code
if selRotation.checked do
(
in coordsys world x = object1.rotation
in coordsys world y = object2.rotation
in coordsys local object1.rotation = y - x
)
I tried to change object1 to what you said - getCurrentSelection, i get same result =(.
I figure it out anyway( By
I figured it out anyway( By myself)
And thx barigazy, your script example rly help me out, now script is fully working.
So any advise ?script is
So any advise ?
script is working for arr2[i].pos = arr1[i].pos with for i = 1 to arr1.count do.
IT is not working with
And i have no idea how to make it work with multiple objects in selection(X) to (Selection X)
The addkey animation feature is stoping after first object got keys(script won't addkey to second obj), any help ??
Thx i understand this for a
Thx i understand this for a bit the script that you send me, the thing i dont understand is that what do i need to make - an count'er, for amount of selected object,
so script would be appled to all of the objects in selection variable "A" to selection var "B" ?
and if it so how i need to make it properly in that script ?
like here
And here
? rly taked a lot of time on this =(.
The script itself for properly for 1 to 1 objects, it doesnt work if there is 2 to 1 or more.
...
Here another example
bga
Thx,but for my
Thx,
but for my script
http://i.shotnes.com/a/11/k12fylci.2fz_522fb49888740.png
this solutin cant be appled(For this script, the only reason i use it - it make perfect position and anim keys), it has 2 buttons, for storing selection for array 1 and array 2.
Then it has add key function http://i.shotnes.com/a/11/ymob5bxi.zh0_522fb558bc135.png
That is problem i guess, because it designed only to add key for 1 object(that where selected on alignObjects button.
Barigazy
Could you give me hint(script Code) how to add keys for bouth objects in selection 1 array.
If i'm wrong correct me, i'm less skilled in script writing.