MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-4  …  65-84  85-104  105-124  125-144  145-164  165-184  185-204  …  905-912

From: James (JFH)
12 Dec 2015   [#125] In reply to [#124]
Pilou / Karsten

RE: "My old brain is a little slow for this sort of sport (Nodes creation)"

Yeah me too. My meagre contribution to the node set has exhausted my coding limits.
Not surprising, considering how limited they are.

I have been trying without success to create a extrude node. Perhaps Karsten, you
could turn your mind to this.

It would be greatly appreciated.
James
From: BurrMan
12 Dec 2015   [#126] In reply to [#125]
Was wondering if it was possible for Max to make an additional feature of this. Basically an addition for "external factories"..

At this point, modifying one of the fundamental cores of the plug, will get out of hand pretty quick... The regular factories file could be kept for agreed upon, fully implemented additions, where the "external factories" would be a place to load whatever is coded for the day.....

Just a thought.....
From: Max Smirnov (SMIRNOV)
12 Dec 2015   [#127]
Hi guys
I didn't have enough free time last week.
Finally today I continued to write the program. I made significant changes in nodeeditor core.
Point and Frame data types is obsolete now. I replaced them with unified pointarray type. Most of the nodes should be rewritten.
Also I added droplists properties, and Math/Function node. This node based on my FxGraph script and supports any math expressions.

Please remember that nodeedior is currently at alpha stage. This means that I can change everything in the main core. And every change may cause that every node must be rewritten from the beginning. Be ready to do it again and again. Or wait until a beta version will be released.

Pilou
>> But wish that Max make a zoom because make some images of a big Nodes will be maybe a little painful
Zooming will be enabled in the next alpha-release.
From: Karsten (KMRQUS)
12 Dec 2015   [#128] In reply to [#127]
Hello Max,

that's really good news - especially the flexible Math-Node - it will reduce the wiring a lot. For me it was clear that most of the nodes has to be rewritten or will some day obsolete. I saw and I see it, as an exercise in JavaScript and the moi-api and I have a lot of fun with it. My intention is to clarify what can to be done with such a system, check limitations and what is most needed. So see me as one of elephants alpha-test-users:-).
In the last hours I fail about the problem to make the link of "Selected" persitent/permanent. The idea was to evaluate the name of the selected object, if it has no name, give it one (simple UUID-routine - example from stackoverflow.com) put it in the label. After store and reload evaluate from label (it seems the informations are in the node file.) But I fail - My limitations:-( - any ideas?

Nevertheless I will show another approach for using such a node-editor:-)


It can also be expanded for clash detection:-)

Thank You very much Max, Pilou, James, Michael, .....

Kind regards
Karsten

Image Attachments:
motor.gif 


From: christian (CHRI)
13 Dec 2015   [#129] In reply to [#128]
Hi Karsten

Your new approach with nodes and dynamic assembly is incredible .
What a surprise for me to see that in Moment Of Inspiration .

With Max, Pilou, James, Michael , YOU and others brilliant people , we can talk about DREAM TEAM

Many thanks for your job
From: Frenchy Pilou (PILOU)
13 Dec 2015   [#130]
Brilliant ideas!
And cool zoom, maths projects!
From: Karsten (KMRQUS)
13 Dec 2015   [#131] In reply to [#128]
Hi Max,

I found a solution for my problem!

Kind regards
Karsten
From: Frenchy Pilou (PILOU)
15 Dec 2015   [#132]
All actual nodes of the animation above! ;)

From: Sharif (SR13765)
15 Dec 2015   [#133]
Hi;

First I want to thank Max for creating such amazing program and others that are contributing to expand beyond. I am trying to create a math conversion node for converting Degree to radian and radian to degree. I created these two nodes by coping other example and modify them.My knowledge of Javascript very limited and I can not figureout why is not converting.

// *************** Math Conversion Degree to radian ****************************

function convertDegtoRad()
{
this.addInput("Deg","number");
this.addOutput("Rad","number");
this.properties = {Deg:0};
}

convertDegtoRad.title = "DegreeToRad";
convertDegtoRad.desc = "Degree to Radian";

convertDegtoRad.prototype.onExecute = function()
{

this.properties.Deg = this.getInputData(0, this.properties.Deg);
var outValue = (this.properties.Deg * 2 * Math.Pi) / 360;
this.setOutputData(0, outValue);
}

LiteGraph.registerNodeType("MathBasic/DegreeToRad", convertDegtoRad);

// *************** Math Conversion Radian to degree ****************************

function convertRadToDegree()
{
this.addInput("Rad","number");
this.addOutput("Deg","number");
this.properties = {Rad:0};
}

convertRadToDegree.title = "RadToDegree";
convertRadToDegree.desc = "Radian To Degree";

convertRadToDegree.prototype.onExecute = function()

{

this.properties.Rad = this.getInputData(0, this.properties.Rad);
var outValue = (this.properties.Rad * 180) / Math.pi;
this.setOutputData(0, outValue);
}

LiteGraph.registerNodeType("MathBasic/RadToDegree", convertRadToDegree);

// *************** ***************************


thanks
-sharif

Image Attachments:
Math Conversion.png 


From: James (JFH)
15 Dec 2015   [#134] In reply to [#133]
sharif

Try "PI" instead of "Pi"

I think it then should work.
Let us know

- James
From: Sharif (SR13765)
15 Dec 2015   [#135] In reply to [#134]
Thanks! It worked
From: guyver (DAVGIAN)
17 Dec 2015   [#136]
this is possible?
http://www.grasshopper3d.com/forum/topics/camel-grasshopper-output-for-5-axis-cam
From: Frenchy Pilou (PILOU)
17 Dec 2015   [#137] In reply to [#136]
Maybe you will be more speedy productive with this free one! ;)

Free for students, enthusiasts, hobbyists, and startups
http://www.autodesk.com/products/fusion-360/try-buy

(Step and Sat from Moi)


From: Karsten (KMRQUS)
18 Dec 2015   [#138] In reply to [#136]
Hello guyver,

It's not possible - I think - at the moment, but maybe some day:-) Because I have only a 3-Axis router I use HeeksCNC for generating G-Code (supports -3-Axes). I read something about a plugIn for GMax called CNC-Toolkit that should do the Job also (5-Axes), but I never had a tryout. Free stuff for that is rare:-(

Kind regards
Karsten
From: Karsten (KMRQUS)
18 Dec 2015   [#139] In reply to [#136]
p.s.: The shown example isn't extreme 5-Axis - That can be done - with respect to the milling time and a lesser quality - with 3-Axes :-)
From: Barry-H
28 Dec 2015   [#140]
Hi,
can someone show me how to do a grid array using this plugin.
I can produce a line of objects space them rotate them and offset them
but for the life of me can't work out how to produce more than one line.
Attached is my effort so far.

Thanks
Barry-H



Attachments:
array.nod

Image Attachments:
Array.png 


From: Karsten (KMRQUS)
28 Dec 2015   [#141] In reply to [#140]
Hi Barry,

the Node is not easy to understand, because the inputs can be interpreted differently, so I want to explain how it works. First the node generates only a 1D-Array. The amount of copies depends on the N value of of your intput Array. So you have to make sure that on every input has to be the same number of values from the arrays. start value and step controls the start and distance from Inputobject to the next generated. You can control x(n) y(n) z(n) independent from each other. If you take an array of constant values (step=0) in x(n) the direction in x is fixed for your arrayed object. If you use step > 0 you will get a linear array. If you put your linear array as an input for a mathematical function and use it as input, the distance between the objects will be controlled by the function. Please make sure that all inputs are connected, because the node is not very stable. If you want to make a grid (2D), you can use the output of a first generative array as the input of a second one. With the sin und cos functions you can also generate spirals or helix. The node is not easy to use but, I think, very flexible. The example shows a grid with a linear and a quadratic growth. I hope you can load it:-), because I play a lot with the code.

Good luck
Karsten

p.s.: All nodes I made are only drafts, to check the possibilites;-) I'm not a native speaker, so the naming may not fortunate.

Attachments:
array2.nod


From: Barry-H
28 Dec 2015   [#142] In reply to [#141]
Hi Karsten,
thanks for your quick reply unfortunately I cannot run Array2 it comes up with the attached error.
I will try to create an array based on the information you have given me.
Many Thanks
Barry


Image Attachments:
Array2 error.png 


From: Karsten (KMRQUS)
28 Dec 2015   [#143] In reply to [#142]
Hi Barry,

sorry there is a named selection in it. Delete it. It is the input of the first gen array. Replace it with what you want, or use this one.

Karsten

Attachments:
array21.nod


From: Frenchy Pilou (PILOU)
28 Dec 2015   [#144]
A funny one will be to emulate the LineWeb! ;)
http://moi3d.com/forum/index.php?webtag=MOI&msg=3666.10


Show messages:  1-4  …  65-84  85-104  105-124  125-144  145-164  165-184  185-204  …  905-912