DEF SomeNode Transform {} # A transform node (flush out!) |
Script { # A Script node |
field SFNode node USE SomeNode # SomeNode is a Transform node |
eventIn SFVec3f pos # new value to be inserted in |
# SomeNode's translation field |
url "Example3.class" |
} |
# while Example3.class is: |
public class ExampleGetAnotherNode extends Script { |
private SFNode node; // field |
public void initialize() |
{ node = (SFNode) getField("node"); } |
} |
It is possible to access any field of the node object. |