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