MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-14  …  635-654  655-674  675-694  695-714  715-734  735-754  755-774  …  895-912

From: Karsten (KMRQUS)
14 Oct 2017   [#695] In reply to [#694]
Hello Alex,
ScaleUVW maybe the node that You searching for.
Here is a link for the latest extensions:

http://moi3d.com/forum/index.php?webtag=MOI&msg=8628.1

Take the extensions.zip - uncompress - and copy to ui/nodes- Restart MoI.

Also a sample for with the scaleuvw node.

Have a nice day
Karsten

Attachments:
scale.nod


From: mkdm
14 Oct 2017   [#696] In reply to [#689]
Hi Max!

@You : "...There was buttons, switches, valves, fans etc. I can easylly convert switch and button nodes for using with MoI..."

That would be amazing!

Please, include that stuff into next version of NE.
I think these new features would add great power to NE.

Thanks.
From: mkdm
14 Oct 2017   [#697] In reply to [#686]
Hi Karsten.

@You : "...Logic/split is the switch you are looking for..."

Perfect! I didn't know this node.
I want to familiarize with it and see how it works.

Thanks!
From: AlexPolo
15 Oct 2017   [#698]
Hello Karsten,

Many thanks for you directions and input.

CHAMPION efforts made by some many on this forum.

All the best Alex.
From: vknw123
15 Oct 2017   [#699] In reply to [#698]
graphical interface. is not responding willingly.
may not need rounded windows and round buttons, do everything square?
From: James (JFH)
15 Oct 2017   [#700]
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;
////////////////////////////////////////////////////////////////////

Image Attachments:
subD.jpg 


From: Karsten (KMRQUS)
16 Oct 2017   [#701] In reply to [#700]
Hello James,

it's early in the morning here. I can have a look in the evening. But I saw that I have left the node untouched for a very Long time. I have to rework it. Maybe I have to look a Little bit deeper in it. As I remember, it wasn't easy for me to wrap it without understanding the code.

Have a nice day

Karsten
From: Karsten (KMRQUS)
16 Oct 2017   [#702] In reply to [#701]
Hello James,

which effect has the Corners Option. I can't see a difference when I Switch to 0. The original script hasn't this Option also not. Or is it in a Special geometry constellation. If yes, please post an example geometry. Maybe Max can enlight me.

Karsten
From: James (JFH)
16 Oct 2017   [#703] In reply to [#702]
Hi Karsten,

<<which effect has the Corners Option>>

Its the same as "preserve corners" script checkbox, allowing subdivision of 2d shapes:

Ideally, the "Corners" option would have a 2 state pulldown with choice between "preserve/ignore" (maybe it would better to simply be "preserve Crn: Yes/No"

I have attached my "max_Subdiv_beta9.js" with the changes outlined in my last post.
It works for inputting into fields on info side panel, but the node itself can not be wired into.

Hope this makes sense
James

P.s. In the .nod file it is necessary to input "1" into "Corners" field because it reverts to "0" on reopening.
From: Karsten (KMRQUS)
16 Oct 2017   [#704] In reply to [#703]
Hello James,
thanks for the information - for 3D objects there is no effect and i never tried flat shapes - then I think there is no problem. After work I will fix it.

Have a nice day
Karsten
From: Karsten (KMRQUS)
16 Oct 2017   [#705] In reply to [#703]
Hello James,

please check the file.

Thanks in advance!

Have a nice day
Karsten
From: James (JFH)
16 Oct 2017   [#706] In reply to [#705]
Thanks Karsten,

I have thoroughly tested new subD node and it appears to work just as it should.
I will do some further testing, but as of now I can tentative recommend that other noders update to this new version.



Thank you so much for your time,
I really appreciate it.

James
From: Max Smirnov (SMIRNOV)
13 Nov 2017   [#707] In reply to [#706]
MoI v4 (icons and background fix)

Replace editor.js and editor.css with new files
http://moi.maxsm.net/nodeeditor/
From: James (JFH)
13 Nov 2017   [#708] In reply to [#707]
Hi Max

Thanks for MoI v4 (icons and background fix).

I still get error message when using MacBook Pro trackpad in NE
see earlier post:

http://moi3d.com/forum/index.php?webtag=MOI&msg=8675.21

Regards
James
From: Max Smirnov (SMIRNOV)
25 Nov 2017   [#709]
v.0.98
MoI v4 compatibility fixes
Removed pointArray.pSize function, use pointArray.getScale instead
Added pointArray.setScale function
Added ScalePts node
Added Selection border
Added UI extensions (Example: core/ext.mylib.js)

http://moi.maxsm.net/nodeeditor
From: mkdm
25 Nov 2017   [#710] In reply to [#709]
Wanderful!!!

Thanks a lot Max.

Asap I'm going to test this new version.

Ciao!
From: Frenchy Pilou (PILOU)
25 Nov 2017   [#711]
French site takes in count this last opus! :)
http://moiscript.weebly.com/elephant-systegraveme-nodal.html
Not yet translated all new nodes! ;)
From: mkdm
26 Nov 2017   [#712] In reply to [#709]
Hi Max.

After a simple loading of the new NE for V4 and a couple of simple tests, all worked fine with this updated NE.

But so far I've made only a very basic test.

Anyway...thanks a lot.

Just a side note...
I want to apologize to you because some times ago I told you that was my intention to build a new UI for P. Elephant,
but, as you can see, I didn't make anything so far.

I apologize, but I really never didn't find some decent amount of spare time to put my hands on that task,
and actually my situation isn't changed a lot, so at least for the near future I don't think I will be able to do anything about NE's new UI.

I'm sorry.

Have a nice day.

We'll catch up!
From: Frenchy Pilou (PILOU)
26 Nov 2017   [#713]
French Nodes of the V4! ;) (Other menus arrive as soon as possible! :)


From: Frenchy Pilou (PILOU)
26 Nov 2017   [#714]
<< After a simple loading of the new NE for V4 and a couple of simple tests, all worked fine with this updated NE.,

But not directly the Truchet, etc who are on the // NodEditor ! :)

Show messages:  1-14  …  635-654  655-674  675-694  695-714  715-734  735-754  755-774  …  895-912