script
DEF SCRIPT Script {
directOutput TRUE
field SFFloat width IS width
field SFFloat height IS height
field SFNode transform USE TRANSFORM
url "javascript:
function initialize() {
transform.translation = new SFVec3f(width/2,height/2,0);
transform.scale = new SFVec3f(width,height,width);
}
"
}
}