First you get the handle of the eventIn field and then whenever you update its value, you will produce event for this sink. |
EventInSFVec3f set_translation; |
transform = browser.getNode("aNode"); |
set_translation = (EventInSFVec3f) transform.getEventIn("translation"); |
float [] val = new float[3]; |
val[0] = val[1]= val[2]=10.0; |
set_translation.setValue(val); |
DEF aNode in VRML File |
Field in transform node |