MoI discussion forum
MoI discussion forum

Full Version: Parametric design in MoI?

Show messages:  1-9  …  30-49  50-69  70-89  90-109  110-129  130-149  150-169  …  910-912

From: bemfarmer
5 Dec 2015   [#90] In reply to [#89]
Hi Karsten

Finally found the simple error.
Line needs to be replaced with Curve, twice

Line.title = "Curve";
Line.desc = "Curve";

ICurve.title = "ICurve";
ICurve.desc = "ICurve";

- Brian

I renamed it ICurve, because ControlPoint curves are also possible.

Now I will try the simple Catenary to feed into ICurve.
From: bemfarmer
5 Dec 2015   [#91] In reply to [#90]
Here is a version of factories.js with Line and InterpCurve nodes.
(This is NOT approved by Max)
- Brian

Attachments:
factoriesWithLineAndICurve12_5_2015.zip
InterpCurveNodeDemo01.nod


From: Max Smirnov (SMIRNOV)
5 Dec 2015   [#92]
I have a plans to change point and frame formats. I'll make a common data type.
It will support points, frames, point arrays e.t.c.

Brian, thank you!
I'll check it tomorrow :)
From: Karsten (KMRQUS)
5 Dec 2015   [#93] In reply to [#91]
Hi Brian,

thank You very much! Are there some other new nodes?

Kind regards
Karsten
From: bemfarmer
5 Dec 2015   [#94] In reply to [#93]
Hi Karsten,

I have not made any nodes, so you are way ahead of me:-)
But your and Max's examples have shown the way.

- Brian
From: Karsten (KMRQUS)
5 Dec 2015   [#95] In reply to [#94]
Hello,

I've playing around with a very simple node. It only invert values - but I think it can be useful:-)
I've put the following line in the index.html: <script type="text/javascript" src="nodes/math.js"></script>
and put the following file in the nodes directory.






Maybe interesting for someone.

Kind regards
Karsten

Attachments:
math.js

Image Attachments:
InverseVal.gif 


From: Frenchy Pilou (PILOU)
5 Dec 2015   [#96] In reply to [#95]
I believe that you must open a thread for collect the Nodes function created!
Else it will be difficult to find something!
From: Karsten (KMRQUS)
7 Dec 2015   [#97] In reply to [#96]
Hi Pilou,

please, only a last one;-)




It's only for playing around:-)

Thank's Max again - I don't understand that stuff - but I love it!

Kind regards
Karsten

Attachments:
arrays.js
nodemath.js

Image Attachments:
Spirale.gif 


From: James (JFH)
7 Dec 2015   [#98] In reply to [#97]
Thanks Karsten

I have your nodes up and running. Brilliant work...kudos.
I encourage you to keep going.

James
From: Frenchy Pilou (PILOU)
8 Dec 2015   [#99] In reply to [#97]
@Karsten
Does your last Math.js is a growing last one (inverse + ...) or a new one ?

In your last opus what are the new nodes? (and not Max's Nodes yet existing with some other Title)

Where must be in the Max's arborescence of folders ? Some new titles folders must be created ?
(or you have included them in one of the Max file? )

Can you isolated the new nodes and their codes ?

(more easy for me for translate them and maybe make an Elephant's Repository ! :)


(I have no time for search that! And facilities to explore the code! .... )

PS Post the file .nod !
From: Karsten (KMRQUS)
8 Dec 2015   [#100] In reply to [#99]
Hi Pilou,

I renamed Math.js to nodemath.js to avoid Problems with other libraries. Both files are not finished, because a lot of mathematical functions are missing. especially there are some control sequences in the Array functions are missing (Clip the Arrays when they have different length). So I think You shouldn't translate them yet. Caused by the genue structure of Max's and Javi Agenjo's code, additional nodes touches the code in a first step only at index.html. I don't know if the proposed nodes are useful for someone, so we should Play around with them, discuss about the functionallity and improof them, or throw them away. So you can be fully concentrated to Max core functionality.
At this time I don't had a look at the internationalization function, because I have enough Problems with JavaScript and understand the code. But nevertheless I will have a look and try to understand it!? (I'm not a programmer - I only interessed in NOOODESS)

To integrate the files, place them in the nodes Folder. Then add two lines in index.html
<script type="text/javascript" src="nodes/nodemath.js"></script>
<script type="text/javascript" src="nodes/arrays.js"></script>

The menues will then generated:-)

Because all new nodes (excluded line, ICurve) are in These two files, they are already isolated:-) -> for doing with it, what you want!

A repository is a great idea, but we should wait till the next release!

Have a nice day!

Kind regards
Karsten
From: Frenchy Pilou (PILOU)
8 Dec 2015   [#101] In reply to [#100]
@Karsten
Thanks: it's more clear for me! :)
You have forgotten the file .nod !;)

French Multi-Language file lang.js : http://moiscript.weebly.com/uploads/3/9/3/8/3938813/lang.js
can be also found here : http://moiscript.weebly.com/elephant-systegraveme-nodal.html


@Max : about the translation : I have found that the more easy for me was to translate directly the file .nod!
So I use the function F3 with celerity and also Seach/ Replace "title":"English Word" / "title":"French Word" :)

A little surprise was I must change the size of button like "Loft" -->"Surface Tendue" inside the file .nod! :)
Because seems in file .nod buttons are static!
(I can of course also Remove it and remplace it directly in the Editor with the French Nodes version: easy when few but not in many!


From: Karsten (KMRQUS)
8 Dec 2015   [#102] In reply to [#101]
Hi Pilou,

sorry! Here is the .nod-file. You Need also the ICurve-function - posted by Brian! You will find it here -> http://moi3d.com/forum/index.php?webtag=MOI&msg=7713.91

Kind regards
Karsten

Attachments:
sin.nod


From: Frenchy Pilou (PILOU)
8 Dec 2015   [#103] In reply to [#102]
@Karsten
Thanks : useful for training of translation! ;)

But seems I need more infos about install the the ICurve...because there is yet a nodes/factories.js inside the the index.html ! ;)
And some others don't yet appear! (Sin, Cos, 1..n, Generativ Array :)


PS International language is not coding! ;)
It's like that for example for French (here only 2 lines but there a little more :)

FR: {
"Circle" : "Cercle",
"Z axis" : "Axe Z"
},
From: Karsten (KMRQUS)
8 Dec 2015   [#104] In reply to [#103]
Hi Pilou,
sorry for the late reply. You have to replace the original factories.js with the version from Brians post. In the index.html you have to add the two lines. Then it should work. For study look at the attached file. Please make copies of your originals:-)

Kind regards
Karsten

Attachments:
index.html


From: Frenchy Pilou (PILOU)
8 Dec 2015   [#105] In reply to [#104]
@Karsten
Bingo! And in French! :)
It's a little chaotic as process! :)

You right I will wait some times before all was on the road for make the reposity! :)
When I see that I am a little affraid! :) http://modelab.is/grasshopper-primer/

So for the effort try CTRL+SHIFT+CLICK on the Options' Button inside Moi UI ! (bottom middle right screen)


From: James (JFH)
8 Dec 2015   [#106] In reply to [#105]
This is an inelegant solution to achieve this result,
but its my first scratch in the surface of possibilities.

Thanks to Max.... & Brian & Karsten

Regards
James
From: Frenchy Pilou (PILOU)
8 Dec 2015   [#107] In reply to [#106]
Post your file .nod that can help some one! ;)

Message 7713.108 was deleted


From: Karsten (KMRQUS)
9 Dec 2015   [#109] In reply to [#106]
Hello James,

I think you can't make it better with this basic nodes. I tried to make something flexible - on the other side it is difficult to handle and confused to work with it. I think we need some more specialized nodes in the future for particular things. Nevertheless, it seem you have fun and that's important! I have:-) in any case.

I think that the following approach can make things easier, but it's buggy, crashes the script-engine, and can't store the reference to the selected object. I don't know how to solve the problem, and I don't know if it is possible at all:-(
(my programming abilities are very limited)





Kind regards
Karsten

Image Attachments:
pickedCurve.gif 


Show messages:  1-9  …  30-49  50-69  70-89  90-109  110-129  130-149  150-169  …  910-912