vcanim.gif (8357 bytes)Angle Readout
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


Joint Angle Readout



    This example attaches a "readout" to the effector of a joint, which continuously displays the angle of the joint. The readout could just as easily be writing to a file or other device (showing that behaviors can be used as channel drivers) or controlling another model.

  • Use Actor->Skeleton->Draw 2D Chain or Actor->Skeleton->Draw 3D Chain to create a single joint in 2 or 3D.
  • Use Model->Effects->behaviorEdit to attach the angle "readout" script to the joint's effector. This script's location is:
    $SI_LOCATION/3D/custom/SoftWish/SoftWishDemos/behaviorDemo/angle.
  • Select Model->Effect-> behaviorSingle and pick the effector twice (The effector will probably  be named eff1 and you will want to pick it in the schematic window).  If you want to write the angles out to a file; you can enter a filename, or browse for the desired file. If you do not want to write the angles out to a file, click cancel.
     angle_file.gif (8051 bytes)
  • Now select the effector and translate it. Moving the effector causes the script attached to the sphere to get evaluated each frame. That script will calculate and display the joints angle.
  • Now select the effector and translate (move) it.
  • Moving the effector causes the attached code to be evaluated each frame. The code will calculate and display the joint's angle. [ I don't want all these bullets or buttons but I don't have time to figure out why they are being included on the screen now. ]

See Tcl Script.


Whitepaper ] Terms and Conventions ] Release Notes 2.2 ] Problems You May Encounter ] Installation overview ] Installing on Irix ] Installing on Nt ] Licensing ] Scripting ] Utilities and Libraries ] Tools ] Tutorials ]

copyright Video-Collage Inc.