function onSample() { var rootBox = scene.rootBox; if (rootBox) { var styleVar = rootBox.getStyle("position"); if (styleVar && !styleVar.isNull) { shell.print("keyword = " + styleVar.keywordValue); } } }