I’m triyng to write script what will be write for me information in max listener about quaternion rotation and position for animation.
on CopyBones pressed do ( nframes = "sliderTime = " rframes = "$.rotation = " pframes = "$.pos = " keystart = animationrange.start keyend = animationrange.end-1 if selection.count == 1 then ( format nframes sliderTime = 0f print sliderTime format rframes print $.rotation format pframes print $.pos for i = keystart to keyend do ( sliderTime +=1 format nframes print sliderTime format rframes print $.rotation format pframes print $.pos ) ) else ( messagebox "You must select any bone first!" ) )
Working good but information about rot and pos is write for all frames. I want to ignore frames what haven't keysframes. For example I have key in 1st then 5th and 10th, 12th frame. In max listener I want to see something like that:
0f 5f 10f
and not like now
How I can do it?