| 1 |
#X3D V3.2 utf8 |
| 2 |
PROFILE Interchange |
| 3 |
|
| 4 |
DEF MyTransform Transform { |
| 5 |
children Script { |
| 6 |
# TSFNode.AutomaticWeakLink allows to handle such references |
| 7 |
inputOutput SFNode container1 USE MyTransform |
| 8 |
initializeOnly SFNode container2 USE MyTransform |
| 9 |
|
| 10 |
# just make sure we don't make error/memory leak on this |
| 11 |
inputOutput SFNode container3 DEF T3 Transform { translation 1 0 0 } |
| 12 |
initializeOnly SFNode container4 DEF T4 Transform { translation 1 0 0 } |
| 13 |
inputOutput SFNode container5 USE T3 |
| 14 |
initializeOnly SFNode container6 USE T4 |
| 15 |
|
| 16 |
# url "castlescript: |
| 17 |
# function initialize(timestamp) |
| 18 |
# writeln('Script initialized at ' + string(timestamp)) |
| 19 |
# " |
| 20 |
} |
| 21 |
} |