Hi Karsten,
Am I right in think that subD node appears different since your menu reordering?
Had there been change to code? Div input no longer accepts numerical values
(maybe it never did)
Also I am attempting to add new input "corners" to accept 0 or 1
Can you please have a look at my small changes below in bold,
& tell me what code is needed for "Div" & "Corners" inputs to accept numerical values?
I am assuming that what I am asking is relative simple, if not please let me know.
Thanks
James
function SubD()
{
this.debug = true;
this.minsize = [80, 60];
this.addInput("In", "objectlist"); // [0]
this.addInput("Div", "number"); // [1]
this.addInput("Corners", "number"); // [1]
this.addOutput("Out", "objectlist"); //[0]
this.properties = {Div: 100};
this.properties = {Corners: 0};
}
SubD.title = "SubD";
SubD.desc = "SubD";
SubD.prototype.onAdded = function ()
{
this.properties.Div = 100;
this.properties.Corners = 0;
this.lastalpha = -1;
}
SubD.prototype.onExecute = function ()
{
// var outObj = moi.geometryDatabase.createObjectList();
var sourceObject = this.getInputData(0, moi.geometryDatabase.createObjectList());
this.properties.Div = this.getInputData(1, this.properties.Div);
this.properties.Corners = this.getInputData(2, this.properties.Corners);
var smooth = this.properties.Div;
var preserveCorners =
this.properties.Corners;
////////////////////////////////////////////////////////////////////