MoI discussion forum
MoI discussion forum

Full Version: V5 beta Jul-30-2024 available now (Sticky)

Show messages:  1-9  10-29  30-49  50-55

From: Michael Gibson
31 Oct   [#30] In reply to [#27]
Hi Andreas, also another way to remove names from edges is to set up this on a shortcut key:

script: /* Remove names from edge sub-objects */ var breps = moi.geometryDatabase.getObjects().getBReps(); for ( var i = 0; i < breps.length; ++i ) { breps.item(i).getEdges().setProperty( 'name', '' ); }

That will get rid of the "K2-Balkon-2" that's at the top which is set on an edge sub object.

- Michael
From: Sirius (ANDREAS_DREXLER)
1 Nov   [#31] In reply to [#30]
Hi Frenchy, Hi Michael,

Your tips were very helpful.
Many thanks for that.

I immediately put the script on F2, it works perfectly.

Can moving be made easier?
For example, simply change the assignments in the object list using drag and drop?

It would be helpful if in this list:



the existing layers could be selected from the object list.


Bye
Andreas

Image Attachments:
Screenshot 2024-11-01 085011.png 


From: Michael Gibson
1 Nov   [#32] In reply to [#31]
Hi Andreas, drag and drop can get very awkward when lists get longer and you need to try and control scrolling within the drag/drop as well.

I've been trying to avoid using it.

Maybe I can add a "Move" item to the pop up menu that currently has "Assign selection here" and "Rename" on it. The "Rename" there allows you to rename an item without having to make it selected first. A "Move" item there could be similar, it could wait for you to click on another item in the list and assign it there without needing to set selection.


> It would be helpful if in this list:
>
> the existing layers could be selected from the object list.
>

You're getting to that by clicking the name line in the properties panel here, is that correct?



If you want to set it to an existing name, don't use that method - instead click on the name in the Scene browser and choose "Assign selection here", or you can also right click on it which will assign it without having the menu pop up.

- Michael

Image Attachments:
Andreas_rename.png 


From: Sirius (ANDREAS_DREXLER)
1 Nov   [#33] In reply to [#32]
Hi Michael,

>You're getting to that by clicking the name line in the properties panel here, is that correct?

Yes.

<If you want to set it to an existing name, don't use that method - instead click on the name in the Scene browser and choose "Assign selection here", or you can also right click on it which will assign it without having the menu pop up.


Works perfectly :-)

Bye
Andreas
From: Sirius (ANDREAS_DREXLER)
1 Nov   [#34] In reply to [#33]
Hello Michael,

If objects with the same name are in a group, I can only access individual areas etc. by double-clicking.

If I dissolve the groups, the individual objects can be reached with a single mouse click,
which I find better!

Is this behaviour desired for grouping?
If so, why?

Bye
Andreas
From: Frenchy Pilou (PILOU)
1 Nov   [#35] In reply to [#34]
maybe you can use this for rename all objects of a selection so no double name! :)

> Is there any possibility to create a script that will number objects depending on the sequence of clicking on them?

Try this:

script: /* Set name by selection order */ var objs = moi.geometryDatabase.getSelectedObjects(); objs.sortBySelectionOrder(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); obj.name = i+1; }
From: Michael Gibson
1 Nov   [#36] In reply to [#34]
Hi Andreas,

re:
> If objects with the same name are in a group, I can only access individual areas etc. by double-clicking.

Yes, that's correct. The click selection behavior is the same whether you have objects with the same name or with different names.

I've attached an example file here, the group on the left contains objects with the same name, the group on the right contains objects with all different names.

You should see the same viewport click selection behavior on both.

If you are seeing a difference in behavior with same name vs different names, can you please post an example file?

Also, if you hold down the Ctrl key when you click, it will drill down to immediately select that individual object inside the group instead of going in steps like plain left click does.


> Is this behaviour desired for grouping?

Yes, this is the intended behavior.


> If so, why?

Because that's the behavior of the vast majority of software that has a function called "groups".

For example Affinity Designer, Adobe Illustrator, Inkscape, Rhino, MS Word.

It's an organization method that helps to make a number of objects stay together and behave as one unit.

In the future I want to add some other types of organizing (called "folders", probably) that will behave differently. But grouping was frequently requested so it has been the priority for hierarchical organizing tools.

- Michael

Attachments:
group_example.3dm


From: Sirius (ANDREAS_DREXLER)
3 Nov   [#37] In reply to [#36]
Hi Michael,

thank you for the detailed explanations.

I think it would be helpful to be able to sort the stiles alphabetically, in ascending or descending order.

Bye
Andreas
From: Michael Gibson
3 Nov   [#38] In reply to [#37]
Hi Andreas,

re:
> I think it would be helpful to be able to sort the stiles alphabetically, in
> ascending or descending order.

You can do that currently using a script, see here:
http://moi3d.com/forum/index.php?webtag=MOI&msg=3918.2

That's in increasing order, to do it in decreasing order use this one:

script: /* Sort styles alphabetically decreasing */ moi.geometryDatabase.styleEditorOpened(); var styles = moi.geometryDatabase.getObjectStyles(); var stylearray = new Array(); for ( var i = 0; i < styles.length; ++i ) { stylearray.push( styles.item(i) ); } function sortfunc(a,b) { return b.name.toLowerCase().localeCompare( a.name.toLowerCase() ); } stylearray.sort(sortfunc); for ( var i = 0; i < stylearray.length; ++i ) { var style = stylearray[i]; while ( style.index> i ) style.moveUp(); } moi.geometryDatabase.styleEditorClosed();

- Michael
From: Sirius (ANDREAS_DREXLER)
4 Nov   [#39] In reply to [#38]
Super.... Thank you
From: David M (DOMCM)
4 Nov   [#40]
A nit with V5 beta July-30-2024. When running on my 4K display at 225% displaying scaling, a black border appears on the right side of the options menu when opened.

Image Attachments:
black_border.jpg 


From: Michael Gibson
4 Nov   [#41] In reply to [#40]
Hi David,

re:
> a black border appears on the right side of the options menu when opened.

Does it seem to go away if you resize the dialog window?

- Michael
From: David M (DOMCM)
4 Nov   [#42] In reply to [#41]
Michael,

Yes, the black border disappears when the window is resized.
From: Sirius (ANDREAS_DREXLER)
9 Nov   [#43] In reply to [#42]
Hello,

it would be good if MOI could create backup files at adjustable intervals and move the older versions to the bottom.

It would be good to be able to define a directory in which these backup files are stored.

Project name Backup file-001 = current status
Project name Backup file-002 = old status
Project name Backup file-003 = even older version
etc.
etc.

It would also be desirable if the number of backup files could be set.

Bye
Andreas
From: pressure (PEER)
9 Nov   [#44] In reply to [#43]
Hi Andreas,

Have you tried IncrementalSave?

http://moi3d.com/2.0/docs/moi_command_reference10.htm

- Peer
From: Sirius (ANDREAS_DREXLER)
10 Nov   [#45] In reply to [#44]
Hello Peer,

thanks for the tip!
That comes very close to what I want.

However, an automatic backup function as described by me would be more convenient and secure.


Bye
Andreas
From: Sirius (ANDREAS_DREXLER)
11 Nov   [#46] In reply to [#45]
Hello Michael,

can I make the view orthogonal to the surfaces
that I have marked with the red arrows in the image?



It would be desirable to be able to align the view orthogonally to any surface.

This would often make the construction easier.

Bye
Andreas

Image Attachments:
Screenshot-01.jpg 


From: Phiro
11 Nov   [#47]
Hi Andreas,

The Cplane function doesn't give you plain satisfaction ?
Documentation here : http://moi3d.com/4.0/docs/moi_command_reference5.htm#cplane

Have fun
From: Michael Gibson
11 Nov   [#48] In reply to [#46]
Hi Andreas,

re:
> can I make the view orthogonal to the surfaces
> that I have marked with the red arrows in the image?

Yes as Phiro writes above you can use the Construction Plane (View > CPlane) function to do that.

Snap the orientation picker onto the center point of those planes that you are indicating and then the ortho Top/Front/Right views will be oriented around that local frame of reference. So after you set the CPlane when you draw in the Top view you'll be drawing on that plane.

When you're done use the "Reset CPlane" button inside the View > CPlane command, or also you can right click on View > CPlane as a shortcut to resetting it back to world orientation.

- Michael
From: Sirius (ANDREAS_DREXLER)
12 Nov   [#49] In reply to [#48]
Hello Phiro, hello Michael,

that was what I wanted.
It's great that it's already included in the programme.
Thanks for your help.

Bye
Andreas

Show messages:  1-9  10-29  30-49  50-55