MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-4  …  625-644  645-664  665-684  685-704  705-724  725-744  745-764  …  905-912

From: mkdm
14 Oct 2017   [#685] In reply to [#684]
Hi James!

@You : "...It would be useful to have an additional widget: a simple 2 state Switch,..."

+1 For this idea!

I've also another idea, that I have developed some times ago in one of my old Utility nodes (actually I don'r remember which..)

The idea is having for every node, or at least for each node where this thing make sense,
a "on/off switch" that should act as a "pass-trought".

I mean.
When the switch in "ON" then the node will output the data based on its internal code. This is the normal mode.
When the switch in "OFF" then the node will simply output the input data, without making any elaboration.

This could be very useful for example when i simply want to "exclude" the elaboration made by a node,,
while maintaining the whole "node-chain".

I don't know if I made myself clear.

Now, I don't have time to explain better but ASAP I will post an example of what I'm talking about.

Have a nice day to everyone!
From: Karsten (KMRQUS)
14 Oct 2017   [#686] In reply to [#685]
Hello Marco,

Logic/split is the switch you are looking for - you only need the button.

Have a nice day
Karsten
From: vknw123
14 Oct 2017   [#687] In reply to [#686]
how to mirror the result. along the X axis?

Image Attachments:
Screenshot_1.png 


From: Karsten (KMRQUS)
14 Oct 2017   [#688] In reply to [#687]
Hello vknw123,

difficult to say - do you use additions. I can't see the details of the picture. Is it possible to send the file?

Have a nice day
Karsten
p.s. It's maybe someting for a native speaker.
From: Max Smirnov (SMIRNOV)
14 Oct 2017   [#689]
Hello

About year ago I've made a nw.js version of the nodeeditor. I wrote it for my work. There was buttons, switches, valves, fans etc. I can easylly convert switch and button nodes for using with MoI





From: vknw123
14 Oct 2017   [#690] In reply to [#688]
Karsten (KMRQUS),
I need to reflect, because not always the object is the same along the Y axis

Attachments:
lodka.nod

Image Attachments:
Screenshot_2.png 


From: bemfarmer
14 Oct 2017   [#691]
https://nwjs.io/
From: Karsten (KMRQUS)
14 Oct 2017   [#692] In reply to [#690]
Hello vknw123,

at first - an very intersting project!

It seem that you use no extensions. The Standard version of the nodeeditor hasn't a mirror node at the moment. So you have to use the extensions. But there isn't a russian language file. Maybe You are the one that translate it:-) or use it like it is.
Here is a link:
http://moi3d.com/forum/index.php?webtag=MOI&msg=8628.1

Extract the extensions and copy the folder to /ui/nodeeditor/nodes/

Restart MoI.




Have a nice day
Karsten

Attachments:
lodka-ext.nod

Image Attachments:
lodka-extended.png 


From: vknw123
14 Oct 2017   [#693] In reply to [#692]
Karsten (KMRQUS),
Thank you so much.
works great.

Image Attachments:
Screenshot_3.png 


From: AlexPolo
14 Oct 2017   [#694]
M.I.A Node - Looking for a Node written a while back gone missing in action from my collection written by one of the Node Masters have tried searching the forum threads but not coming up if anyone can point it out would be great.

It was the 3d Scale Array over a path.

Many thanks
Alex.
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

Show messages:  1-4  …  625-644  645-664  665-684  685-704  705-724  725-744  745-764  …  905-912