Show messages:
1-4
5-24
25-44
45-64
65-68
From: Frenchy Pilou (PILOU)
< those are definitely good ideas, but just keep in mind that if I spend several weeks working on a super nice extra-deluxe categorized plugin gallery UI, that is several weeks of work that are not happening on other areas.
Suggestion
So give just the possibility to the user to build his own library of plug ! :)
(background, image, text)
From: jbshorty
Michael - Having a specialized Toroidal Helix command sounds llike a bit of a temporary solution. As you mentioned, it's not practical to make a helical version of every curve type. So why not have an "Around Curve" option as in Rhino?
Brian - There is a very easy way to control the "tangent spin" on the swept surface. You need to run the sweep using 2 rails. Just make two helices with same # of turns and same starting point, but give them different radius values.
jonah
From: manz
Hi Michael,
Nice result there.
I do find much interest with the math_functions. If you have time could you post the available math_functions allowed (there is no need for examples or explanations, just correct syntax for input/use)
Example:
You show use of cosine via: "Math.cos" so would that infer a "Math.tan" function, and are there further such as arc_tan / sq_root etc etc.
TIA
- Steve
From: Michael Gibson
Hi Pilou,
> Suggestion
> So give just the possibility to the user to build his own library of plug ! :)
> (background, image, text)
If you'd like to write your own UI, that is actually possible right now...
I've attached an example here: PluginGallery.htm - copy that to the \ui subfolder in MoI's main installation folder, and then set up a keyboard shortcut that has this as the command for it:
code:
script:moi.ui.createDialog( 'moi://ui/PluginGallery.htm', 'resizeable' );
Now when you push that key, the PluginGallery.htm page will come up in a dialog box.
It is a page of big buttons, you can click on a button to start the command - currently only the ToroidalHelix one is filled in.
But you can edit the PluginGallery.htm file with as many different images, backgrounds, or text as you like.
- Michael
Attachments:
PluginGallery.zip
From: Michael Gibson
Hi Jonah,
> So why not have an "Around Curve" option as in Rhino?
I'd like to do that in the future, but I don't currently have enough stuff exposed for scripting to make a script plugin right now that will do that.
On the other hand, there is enough stuff in place to do a quick toroidal helix one.
So that's why I made that one, to solve the immediate problem at hand.
A lot of times I may create these little plug-ins to solve some immediate particular problem...
- Michael
From: Michael Gibson
Hi Steve - re: Math functions
That's actually just straight JavaScript code there, so check out any JavaScript programming reference to get the complete list. (in this case look for something like "Math object").
Here are a couple of links:
http://www.w3schools.com/js/js_obj_math.asp
http://msdn2.microsoft.com/en-us/library/b272f386.aspx
- Michael
From: Frenchy Pilou (PILOU)
I will test that :)
From: Frenchy Pilou (PILOU)
Works like a charm!
Of course theses colors are my own fantasy for this post:)
If I good understand I must just edit the Html file for add my own Plug button image, background, Text... etc... :)
The only important thing are these lines ?
<html xmlns:moi>
<head>
<link rel="stylesheet" href="moi.css" type="text/css">
<title>MoI Plugin Gallery</title>
<style>
moi\:PushButton table
{
text-align:center;
width:220px;
}
</style>
</head>
and each lines
<moi:PushButton command="ToroidalHelix">

Image Attachments:
test_tool.jpg
From: Brian (BWTR)
Thanks Jonah and all.
I am going to have more fun today it seems.
It's 9.30am here.
Sailor Ed has suggested to me that I may want to create braided rope! (As in plaited?)
From: Ed
re: Math functions
I have a project at the moment where I need to draw a sine wave. I was going to plot a sine wave in an Excel spreadsheet graph, then trace over in MoI.
I'd like to see an example of how to program one in MoI.
Ed
From: Brian (BWTR)
Is it not simple to bring in a jpeg image, even a jpeg of a "print screen", into the MoI View/Image to use to trace over?
The attached shows some sine wave images that could be saved for that purpose.
(Sorry if I have misinterpreted your question)
Brian
From: Michael Gibson
Hi Pilou,
Yup, you've got the right idea there - you would keep the top stuff the same, and edit the stuff that is inside of the <moi:PushButton> tags - each of those is one of those big buttons.
For each command, you would add the command name inside the command="" part, so for example for the Pipe plugin, you would put:
<moi:PushButton command="pipe">
....
Now pushing that particular big button will call the Pipe plugin command.
For changing the images or text, you can find the <img> tags, and change the src="" paramter to point to your own bitmap file - this can be a file on your local hard drive instead of on the web if you want, for those use the
file:// address, like <img src="file://C:/images/MyImage.jpg">
To edit the text, find the areas inside the <td> tags that currently say stuff like "Some other command" and "Notes: Some notes here", and change those to say whatever you would like to have as text instead.
You can use copy and paste to insert new <moi:PushButton> elements as you wish.
If you look at the file you will see that there is a <tr> </tr> for each row of buttons (tr stands for table row), and then a <td> </td> around each button (td stands for table data cell) - if you are familiar with HTML this is all the same as that.
I found that I made a kind of error in the previous one - I had copy/pasted 3 tables in there instead of putting things all in one single bit outer table, I have attached an updated version (PluginGallery_fixed.zip) that has just one big outside table.
Of course there are also a lot of other possible ways to arrange this, I have attached an alternate version (PluginGallery2.zip) that is more like a single column vertical list. One thing that is nice about this arrangement is it is easier to add items to the end of it since you don't have to worry about any <table> <tr> or <td> stuff in it.
Note that after you edit these file you need to exit and restart MoI to see your changes applied (this is because MoI internally caches these files in memory to speed up subsequent loading, so it once it caches one version of a file it won't see any changes to the file during the same run).
- Michael
Attachments:
PluginGallery2.zip
PluginGallery_fixed.zip
From: Brian (BWTR)
Just a very quick rough example.
From: Michael Gibson
Hi Ed - re: sine wave function
Here you go!
To install it, unzip the attached SineWave.zip file and copy the 2 files into the \commands subfolder under MoI's main installation folder, then you need to set up a shortcut key with the command name of SineWave and push that key to trigger the new command.
Everything in this one follows the same process as that previous toroidal helix command.
Note - the resulting curve only has its control points located exactly on the sine wave, the actual curve will follow the control points but not go exactly through them so there is some small deviation from this and a completely accurate sine wave, but it is pretty close.
You can use a higher point count if you want to increase the accuracy, as more points are used, the curve will be closer to the points and become more and more precise to the true sine wave shape.
Hope this helps!
- Michael
(EDIT: original version had a small bug where editing the length did not update, attaching updated fixed version).
Attachments:
SineWave.zip
Image Attachments:
sinewave_screenshot.jpg
From: jbshorty
Just blend between two lines to create 1/2 of the wave. Then mirror, join , and use Array Dir to repeat it...
jonah
Image Attachments:
sine wave.jpg
From: Ed
Thanks for the Sine Wave Michael!
I like these little "wizards" you keep coming up with.
I was prepared to trace one, but having one accurately created will help with my model (which I hope to post soon).
Ed
From: Michael Gibson
Hi Jonah,
> Just blend between two lines to create 1/2 of the wave.
> Then mirror, join , and use Array Dir to repeat it...
That's definitely a very similar shape, but that is slightly more bulgy/rounded than an actual sine wave...
- Michael
From: Brian (BWTR)
Michael--Plugin Gallery?
I don't seem to be getting anything to work?
Any chance of a fresh post using the "Best" zip and spelling out the proceedures again please?
Brian
From: manz
Hi Brian,
Plugin Gallery,
After you have placed the PluginGallery.htlm into the MoI\ui directory, you will then want to make some images for the tool/plugin you are going to show, then place those images into a directory (probably best into a sub directory of MoI)
Then open the PluginGallery.htlm file in notepad(or similar), if you look down the file you will see:-
Shaded in red is the name of the actual command. In blue is the location of the image (this will be on your own HD in the directory you have placed your images). In green is a description of what the plugin/tool does.
After the bottom red line, you will see in the PluginGallery.html that the above info is repeated, so just change the command name/ image location and description for the command you want to show in the gallery.
Then add your shortcut key
Hope that helps,
- Steve
From: Brian (BWTR)
Thanks Michael---far to difficult for my old brain.
And that seems to have gone even further steps ahead of what I was trying to grasp from the original and changed, first zips/imformation?
Show messages:
1-4
5-24
25-44
45-64
65-68