Learning to create addon
 1-17  18-32

Previous
Next
 From:  Elang
10889.18 In reply to 10889.17 
Hi Michael,

So in general the setInput indexes is something that mimics the way we input them in Moi?

Still are there any reference list for each of the command? I'm hoping something like here:
https://learn.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/string-functions

... though a much simpler way is ok.

Thank you very much in advance.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Elang
10889.19 
Found something very interesting here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=10720.5

Is this contains all object in Moi?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10889.20 In reply to 10889.19 
Hi Elang, I think there's a more up to date one here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=10857.36

> Is this contains all object in Moi?

I think it has all of them at that point in time that it was made but it's from quite a while ago.


re:
> So in general the setInput indexes is something that mimics the way we input them in Moi?

Yes the regular commands fill in these same factory inputs, often times by connecting them to edit fields in the UI and also some inputs take x,y,z point values that are filled in by a pointpicker.

A script can just directly fill in the factory inputs instead which is what your example code there was doing.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10889.21 
Well, I cannot believe this.
I was working on a super simple BoxBasic script, and either Windows 11, or a recent version of Notepad++ renamed TWO entirely different .htm files to .html.
So nothing was working.

- Brian

Also, my Windows 10 file manager shows both .html and .htm files as HTML Document.
Notepad++ does show the correct extension of an .htm file, or an .html file.

For MoI scriptwriters dealing with .htm files, is may be a good idea, in Windows 10 file manager,
to select view, and check the box "File name extensions", which will display the corresponding
.htm or .html extensions attached to the file name.

EDITED: 11 Nov 2022 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10889.22 
Here is a very simple script to create a box, using just the MoI Box factory.
The Box seems to be sitting on the x,z plane, so I may switch to the x,y plane, the original intention, with Height in the z direction.
This can be done by just re-ordering the order of the box factory inputs.

Note that there are more than one way to make this box. There is .update and .commit.
There is .calculate, and moi.geometryDatabase.addObject( box ), with objectlists.

This box is a solid, with 6 faces. If one face is deleted, the box is a joined surface, with walls and bottom of zero thickness.

The desired box has not been specified.
My concept of what the desired box could be, is that of a candy box, with open top, and 4 sides (walls), and a bottom, all of which have non-zero width.
One way to do this, as for the previous manual method several posts ago, would utilized a half dozen or so factories, in one script...

- Brian

EDITED: 11 Nov 2022 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10889.23 
Here is Alpha4 version, with Height in z direction.
Just swapped box factory inputs 3 and 4.

- Brian

ps Change a slider, then click on input label, to restore default dimension value.

EDITED: 11 Nov 2022 by BEMFARMER


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Elang
10889.24 
Wonderful! Thank you very much, Brian.
I'm sure I will learn a lot from your script.

- Elang
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10889.25 In reply to 10889.24 
In the past, when I just cannot get a script to work, by making a question, or request, Michael has provided a lot of tremendous help!

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Barry-H
10889.26 
Hi,
attached a nod file created in nodeditor that makes boxes from any closed curve profile that can be scaled.
Not sure if this is the kind of thing you are after.
Cheers
Barry


Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
10889.27 In reply to 10889.26 
Hi Barry,

You have made a very nice node!

Select a closed profile, e.g. Rectangle, Star, Circle, etc.
Run Box2.nod in nodeeditor.

- Brian
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Barry-H
10889.28 In reply to 10889.27 
Thanks Brian,
the nodeditor as it’s uses for us non programmers.
Cheers
Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  WN
10889.29 
NE-Box

image host image host image host image host

EDITED: 12 Nov 2022 by WN

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  BurrMan
10889.30 In reply to 10889.29 

Joinery!!! Nice WN.

Also Barry. Always great contributor! :)

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
10889.31 
Cool nodes process!
---
Pilou
Is beautiful that please without concept!
My Moi French Site My Gallery My MagicaVoxel Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Elang
10889.32 
Hi everyone, Thank you very much for such nice and helpful respond.
I'll learn a lot from all of you.

Please keep them coming.

Thank you and have a nice day!
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-17  18-32