Hi Pilou,
> About the Revolve function : I try to add the "if ( Math.abs(angle) < 0.01 ) return;" inside the construct.js file of the nodeeditor>
> but as I don't know where exactly to add it i have for the moment some errors... :)
>
Probably like this (haven't tested to make sure though), add the line marked with >>>
code:
Revolve.prototype.onExecute = function()
{
if (this.properties.mode[0] === "Union")
{
var inObj = this.getInputData(0, moi.geometryDatabase.createObjectList());
var center = this.getInputData(1, new pointArray(true));
this.properties.angle = this.getInputData(2, this.properties.angle);
var frame = center.getFrame(0);
>>> if ( Math.abs(this.properties.angle[0]) < 0.01 ) return;
var output = factory ('revolve', inObj, frame.origin, frame.evaluate( 0, 0, 1 ), this.properties.angle[0], this.properties.cap_ends[0] === "On");
this.setOutputData(0, output);
}
else
{
var data = this.processInOut(this.properties.mode[0], this.multiProcess, null, null, 360 );
this.properties.angle = data.inputs[2];
this.setOutputData(0, data.outputs[0]);
}
}
>
> PS about the Node editor for the V3 I have only a "White screen Window"
> I have tryed
>
> moi.ui.createDialog( 'nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ) on the prog itself
>
> moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ); on the "application data"
>
> no success
>
> What is the number of the version of NodeEditor working for the V3?
I think the same version works for both, however v3 does not have the stuff needed for running it from appdata so you have to install it in the main install folder, in the ui subfolder if I remember right.
Then if you put it in a folder like \ui\nodeeditor , you would use the first one above. Whatever folder you put it in, this part in bold of the keyboard shortcut should match the folder name: moi.ui.createDialog( '
nodeeditor/index.html',
If you want to have one single launcher shortcut key that does different things depending on whether it's running in V3 or V4 you can do it like this:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9266.194
Also Macros in v3 won't work unless you apply the fix from here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=7777.1494
- Michael