Hi Kartsen and good morning.
Thank you for updating my old arraysExt.js and litegraphExt.js.
N.B. I will begin by saying that I'running latest Max's verison "nodeeditor.v.0.85_mod.zip" at http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.485
Well...I'm sorry but it seems that your updates doesn't works for me.
I think that I'm doing something wrong or I'm getting a little bit confused among various versions (mine and yours).
When I run your last experiment "ashuffle.nod" ( http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.528)
I get this error : http://take.ms/R2l59
Also if I run this simple .nod file ( http://take.ms/mGHP8) I get this error : http://take.ms/LnRgz.
I'm running your arraysExt.js that you uploaded ( http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.528)
and this is my litegraphExt.js that has your modifications :
code:
// litegraphExt.js v.0.1 - Marco Di Mario (mkdm), 2016
// based on :
// Max Smirnov's Node Editor, v.0.65 - 2016
// litegraph.js library (c) Javi Agenjo http://tamats.com
pointArray.prototype.getElement = function(n)
{
var idx = (n || 0);
var shift = idx * this.recordLength;
var element = {"pt":this.getPoint(idx),
"AngleX":this.data[shift+3],
"AngleY":this.data[shift+4],
"AngleZ":this.data[shift+5],
"Size":this.data[shift+6]};
return element;
}
pointArray.prototype.copyElementDataTo = function(source_elem, n)
{
var idx = (n || 0);
var shift = idx * this.recordLength;
if (source_elem) {
this.data[shift+0] = source_elem.data[0];
this.data[shift+1] = source_elem.data[1];
this.data[shift+2] = source_elem.data[2];
this.data[shift+3] = source_elem.data[3];
this.data[shift+4] = source_elem.data[4];
this.data[shift+5] = source_elem.data[5];
this.data[shift+6] = source_elem.data[6];
}
}
What I'm doing wrong ?
P.S : Would you like to rewrite my lost :( experimental nodes ArrayDistinct and ArrayBoolean that I mentioned in my previous post ?
( http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.527)
Have a nice day ?
- Marco (mkdm)
|