Elephant Repository
 1-20  …  81-100  101-120  121-140  141-160  161-180  …  501-503

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.121 
Anyway :)

Node Intersection (English French)
http://moiscript.weebly.com/construct.html



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9476.122 In reply to 9476.119 
Hi Pilou,

> Ps The file ".3dm" saved don't appear on the list of last saved ! ??
> I have yet 15 last saved files in this list (does exist a maxi number)
> Saved is done before launch the Node!

The "recent files" list is written to moi.ini when MoI closes down but if it crashes then the normal shutdown processing does not happen.

The number of recent files that are displayed can be adjusted in moi.ini :

[UI]
<....>
MaxNumRecentFiles=15


- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.123 In reply to 9476.122 
Thx for the Infos!
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.124 
Node Union (English French)
http://moiscript.weebly.com/construct.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.125 
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... :)

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?

EDITED: 8 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.126 
Last one of the Native Section "Construct" :)

Node Revolve
(English French)

http://moiscript.weebly.com/construct.html

Warning : Put the Minimum of the Slider at 1° Angle for avoid a direct exit of Moi before the new V4 !!!



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9476.127 In reply to 9476.125 
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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.128 In reply to 9476.127 
About the >>> if ( Math.abs(this.properties.angle[0]) < 0.01 ) return;

that is working fine now! The right thing at the right place is better than the right thing at a random place! :)

About the V3 : that is working also fine after the "fix" ! (i have the 0.97 ) so i will test also the 1.0

Edit: definitly not the 1.0 works for me for the V3 inside the (x86 path) or inside the the app data...
not a big deal... as that works now 0.97 (fixed) for V 3 and 1.0 for the beta V 4 :)

Next native section repository will be "Transform" section I see the end of the tunnel but i have keep the more difficult for the end! :)
And the more easy "Basic" for the ultima end! :D

EDITED: 8 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.129 
And last curious thing : the fact to change the Shortcut for a version ("appdata" for Beta V4 - not "appdata" for the V 3)
changes also the Shortcut for the other version of Moi! A true ghost story! :)
I suppose that's explaning my previous "White window" !

So must Copy Past the good path from somewhere if i want use Elephant on an another version of Moi!
(and of course a little trouble with an error "\u8203" during the Copy/Past path for spice things! :)
(seems CTRL C - CTRL V doesn't like to past a selected text from Website - must use the "contextual menu" Right Click !

EDITED: 9 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.130 
Move Node (English French)
http://moiscript.weebly.com/transform.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9476.131 In reply to 9476.129 
Hi Pilou,

> And last curious thing : the fact to change the Shortcut for a version ("appdata" for Beta V4 - not "appdata" for the V 3)
> changes also the Shortcut for the other version of Moi! A true ghost story! :)
> I suppose that's explaning my previous "White window" !

Shortcuts are stored in the moi.ini file and by default both MoI v3 and v4 will use the same moi.ini file, so that's normal.

You can set up an individual shortcut that will do different things depending on whether it is running on MoI v3 or v4, or it is also possible to make MoI v3 and v4 use separate moi.ini files instead of sharing the same one, see here for how to set those things up:
http://moi3d.com/forum/index.php?webtag=MOI&msg=9266.194

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.132 In reply to 9476.131 
<< script: if ( moi.majorVersionNumber == 3 ) { moi.ui.alert('running in v3'); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.alert('running in v4'); }

it's just an Alert or that makes also good running of the good Shortcut ?
And where put it ? At the begin line of the script of the Shortcut Elephant ? or ...

EDITED: 9 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
9476.133 In reply to 9476.132 
Hi Pilou, you would need to replace the alert with the code that opens the node editor dialog.

So for example if you want to have v3 do this:

​moi.ui.createDialog( 'nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );

and have v4 do this:

​moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow );

You would place the v3 code in this spot:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.alert('running in v3'); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.alert('running in v4'); }

and place the v4 code in this spot:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.alert('running in v3'); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.alert('running in v4'); }


So the whole thing would look like this:

script: if ( moi.majorVersionNumber == 3 ) { moi.ui.createDialog( 'nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ); } else if ( moi.majorVersionNumber == 4 ) { moi.ui.createDialog( 'moi://appdata/nodeeditor/index.html', 'resizeable,defaultWidth:680,defaultHeight:420', moi.ui.mainWindow ); }


Hope that helps!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.134 In reply to 9476.133 
That was not evident indeed but miracle...
the "Whole thing" works inside the both V 3 (0.97) and beta V 4 (1.0) ! (in the same time :)
Bravo! No more headaches for this for me now!

(i will try again if the 1.0 works also for the V 3 )
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.135 
Second miracle: the 1.0 works now also for the V3 !
Excellent! :)
Added to the Install http://moiscript.weebly.com/install-elephant.html

EDITED: 9 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.136 
About of the Rotate Node

"Frame" parameters are yet nebulous :)
box = 5 , 5 , 2



Edit : ok I have found the missing link - a true moment of inspiration! :)

EDITED: 9 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.137 
Maybe there is a trick for make a Rotation / a 3D Line ?

Rotate Node (English French)
http://moiscript.weebly.com/transform.html



EDITED: 9 Sep 2019 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.138 
Twist Node ( English French)
http://moiscript.weebly.com/transform.html



---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.139 
Flow Node (English French)
http://moiscript.weebly.com/transform.html



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
9476.140 
Circular Array Node (English French)
http://moiscript.weebly.com/transform.html



  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
Show messages:  1-20  …  61-80  81-100  101-120  121-140  141-160  161-180  181-200  …  501-503