Just select all your animated objects and run this little one ; )
if selection.count > 0 then (
output_name = getSaveFileName caption:"Animation File" types:"Animation Class (*.as)|*.as"
if output_name != undefined then (
output_file = createfile output_name
for o in selection do (
format "\rpublic static var %:Array = [" o.name to:output_file
for t = animationrange.start to animationrange.end do (
at time t (
tx = formattedPrint o.pos.x format:"6.6f"
ty = formattedPrint o.pos.y format:"6.6f"
tz = formattedPrint o.pos.z format:"6.6f"
rx = formattedPrint (o.rotation.x * 180 / pi) format:"6.6f"
ry = formattedPrint (o.rotation.y * 180 / pi) format:"6.6f"
rz = formattedPrint (o.rotation.z * 180 / pi) format:"6.6f"
sx = formattedPrint o.scale.x format:"6.3f"
sy = formattedPrint o.scale.y format:"6.3f"
sz = formattedPrint o.scale.z format:"6.3f"
format "\r\t%, %, %, %, %, %, %, %, %" tx ty tz rx ry rz sx sy sz to:output_file
if t != animationrange.end then format "," to:output_file
)
)
format "\r];" to:output_file
)
close output_file
edit output_name
)
)
A new generation of contact lenses built with very small circuits and LEDs promises bionic eyesight
The human eye is a perceptual powerhouse. It can see millions of colors, adjust easily to shifting light conditions, and transmit information to the brain at a rate exceeding that of a high-speed Internet connection.
But why stop there?
In the Terminator movies, Arnold Schwarzenegger’s character sees the world with data superimposed on his visual field—virtual captions that enhance the cyborg’s scan of a scene. In stories by the science fiction author Vernor Vinge, characters rely on electronic contact lenses, rather than smartphones or brain implants, for seamless access to information that appears right before their eyes. Continue reading ‘Augmented Reality in a Contact Lens’