443

Writing program scripts with Java
Accessing fields from Java

  • Each interface field can be read and written
  • Call getField to get a field object
    obj = (SFFloat) getField( "bounceHeight" );

  • Call getValue to get a field value
    lastval = obj.getValue( );

  • Call setValue to set a field value
    obj.setValue( newval );