Gets the style for 3D objects.

syntaxSyntax:
FWiz.Get3DStyle(styleIndex)

Parameters

Parameter Description
styleIndex Index of the style. There are 10 styles available with indexes from 0 to 9.

Return Value

Returns a Dlx3DStyle object.

Example

  Copy codeCopy code
function OnBuild3DModel()
{
  var ctx = FWiz.Get3DModelCtx();
  var style = FWiz.Get3DStyle(0);
  style.SetStyle("gold");
  var cube = new DlxCube(10, 20, 30, style);
  ctx.Add(cube);
}

See also