HelloJames,
I cant't test at the moment - I have to work, but here a some things I saw.
// Planar
function Planar()
{
this.addInput("In","objectlist");
this.addOutput("Out","objectlist");
} <<<<Brace missing
Loft.title = "Planar"; <<<<<< Planar
Loft.desc = "Planar"; <<<<<<
Loft.prototype.onExecute = function() <<<<<<
{
var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
var output = moi.geometryDatabase.createObjectList();
if ( inObj.length> 1 ) output = factory ('planarsrf', inObj);
this.setOutputData(0, output);
}
LiteGraph.registerNodeType("Construct2/Planar", Planar);
Then it should work.
- Karsten
|