Code: Select all
//JScript
//How do you search within the model for materials that don't have a specfic shader ?
// One thing I realize that X3DObject is strictly any [object] in the scene, similar to DOM.
oRoot = ActiveProject.ActiveScene.Root
var sphere = Model.FindChildren("model", "#model",);
oRoot = MaterialCollection.find("Material")
This code is completely separate, debugging test.
---------
Code: Select all
//JScript
oRoot = ActiveProject.ActiveScene.Root
var oNull = oRoot.addNull( "thenull" );
var oCamera = oNull.AddCamera('camera','mycamera');
var link = ParentObj ("oNull","oCamera");
Root.LogMessage = ("objects parented");