[Closed] again save and load animation
ok , i know about LoadSaveAnimation.saveAnimation and LoadSaveAnimation.LoadAnimation things i tried to save animation on objects and reloading it on another object set renaming and so on manually and worked well ,But when tried to script this the loading process didnt make any difference so i wish if any one here can give me a full working saving and loading script
you denis saved me more than one time before so you can ask for whatever you want
LoadSaveAnimation Interface is a delicate matter… to say why something is not working, i have to know what has to work.
give a sample… here is an animated object – here is an object what you want to load the animation to…
LoadSaveAnimation doesn’t save ANY and EVERY animated controllers! but usually there is a workaround.
if you can manually save and load animation there is 100% that you can do it with mxs.
local tempA=#()
local tempB=#()
local nameA=#()
local nameB=#()
tempo=amin ls1.items.count ls2.items.count ----ls1 and ls2 are list boxes
----------that contain source and destination objects names
for u in 1 to tempo do
( Trt=execute ("$"+ls1.items[u] )
Tlt=execute ("$"+ls2.items[u] )
append tempA ls2.items[u]
append tempB ls1.items[u]
append nameA (execute ("$"+ls2.items[u]))
append nameB (execute ("$"+ls1.items[u]))
)---do end
LoadSaveAnimation.saveAnimation "D:\obbah.xaf" nameA #("") #("") animatedTracks:true includeConstraints:true keyableTracks:true SaveSegment:true segInterval:(interval start.value end.value)
for u in 1 to tempo do
( Trt=execute ("$"+ls1.items[u] )
Tlt=execute ("$"+ls2.items[u] )
Trt.name=tempA[u]
Tlt.name=tempB[u]
selectMore Trt
)
LoadSaveAnimation.loadAnimation "D:\obbah.xaf" nameA insert:true relative:true insertTime:0 stripLayers:false
im just trying to make a tool that enable me to save and load animation automatically
for example:
i m having eight limbs octopus and i want in some how to remap animation on one limb to it the manual way is to save animation from source limb and renaming destination one exactly and respectively to the source one controls then reloading animation on it , easy but tedious for animator , what i did is a tool that do that automatically , for some reason it saves the file and doesnt load any animation nor throw any errors !
3 hours trying hard to figure out hard but invain!
I’ve written a script that records the movement of a controller in real time, plays back in realtime, and this movement can also be saved in a format I’ve devised called ‘gesture take record’…you can save a ‘gtr’ for any or every controller’s movements, and bake them to keyframes at your leisure. Is this something you might have use for?
Sorry writing from mobil didn’t see ur post , what you said is good. But the beauty of built in save
And load animation is that you can map animation easily
From object to another conditioned that the names are
Identical hopefully I can grap the right code for scripting that