Split Construct and Transform Panels  1-20  21-25

Next
 From:  AlexPolo
8064.1 
Hi All,

Searched forum no direct results on how to split the construct and Transform Panels find myself clicking between really regularly and would be good to have direct access to both at same time.
  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
8064.2 In reply to 8064.1 
Hi Alex, yes it's possible to do that by editing the files that control the UI.

The file you need to edit is named SidePane.htm and on Windows you'll find it in the install folder under the \ui sub-folder. To find it on Mac right-click the .app icon and choose "Show package contents" and inside there go to drive_c/moi/ui . Then edit the file SidePane.htm in a text editor.

Find the section that starts with <moi:PaletteHeader id="ConstructHeader">, that <moi:PaletteHeader> element and the <moi:PaletteBody> immediately following it are what currently contain both the Construct and Transform tabs.

You'll then want to insert a new <moi:PaletteHeader id="TransformHeader"> element and new <moi:PaletteBody> element pair directly after the existing one, and then just move over the Transform tab and the TransformTabContent into the new ones following the same structure as the old one, for example the new tab goes in a <moi:TabContainer> like the existing one had. That should then have it set up how you want.

If things are not working right please post your SidePane.htm file so I can see what's wrong.

- 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:  AlexPolo
8064.3 In reply to 8064.2 
Hi Michael,

Many thanks for your help will mean lots less clicking in my day. Im not really a coder had an attempt the Transform and Construct are separate but only one showing at a time.

Here is my attempt.

<moi:PaletteHeader id="ConstructHeader">
<moi:TabContainer>
<moi:TabButton id="ConstructTab" class="LeftTabButton"><moi:Text textid="Construct tab"></moi:TabButton>
</moi:TabContainer>
</moi:PaletteHeader>

<moi:PaletteHeader id="TransformHeader">
<moi:TabContainer>
<moi:TabButton id="TransformTab" class="RightTabButton"><moi:Text textid="Transform tab"></moi:TabButton>
</moi:TabContainer>
</moi:PaletteHeader>

Alex.
  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
8064.4 In reply to 8064.3 
Hi Alex, is what you show there the full stuff you've got? Because what you show there is missing the <moi:PaletteBody> pieces.

I've attached here a SidePane.htm with the palettes separated, you can just copy this over top of your current SidePane.htm to get it set up.

But also if you don't have a tall enough screen for them both to fit when opened, it's normal that they will only show one at a time because when you open up a Palette if it would cause the other currently open UI to extend beyond the bottom of the window, it will collapse other palettes in order to avoid having the UI entirely disappearing off screen and needing a scroll bar to access it. If that's what you are running into you'd need to collapse one of the other open palettes like the draw curve one by doing a second click on its current active tab before you would have enough room for both Construct and Transform to both be open simultaneously.

Hope that explains what you are seeing, let me know if that's not what you are seeing and if you actually have enough screen space for them both to fit on screen at the same time.

- Michael
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:  AlexPolo
8064.5 In reply to 8064.4 
Hi Michael,

Thanks thats great I usually work on 1920x1080 screens and have the UI set to 10 plenty of room but still easy to read. Once Im past the basic drawing its pretty much just construct and transform functions saves heaps of switching!

Alex.

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:  AlexPolo
8064.6 
Hi Michael,

Migrating to MOIV4 and tried this SIDEPane change but get this weird split I assume another setup is required for V4. If you could advise would be great.

thanks again Alex.



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:  Michael Gibson
8064.7 In reply to 8064.6 
Hi Alex, yes the UI structure is slightly different from V3 to V4, which means that you can't just copy the V3 version of SidePane.htm into V4. Instead you need to edit the V4 file. But the structure is similar enough that using the same directions described above for how to edit the V3 file (http://moi3d.com/forum/index.php?webtag=MOI&msg=8064.2) will also work for V4.

- 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:  Max Smirnov (SMIRNOV)
8064.8 In reply to 8064.6 
Hi Alex,

You can use my sidepane mod as example. In my opinion it's a better way than editing sidepane.htm directly.
Copy it to appdata/startup directory

EDITED: 27 Feb by SMIRNOV

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:  Marbleman
8064.9 In reply to 8064.8 
Thanks Max,

A great help!

And thanks for all of your scripts.

Regards,

James E
www.jameselliott.co.uk
  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:  mkdm
8064.10 In reply to 8064.8 
Thank you very much Max!

Very interesting approach as usual.

One of the things I much like of your programming style is that first of all you give to your business logic a solid foundation (classes, workflow, data structures), where later it's easy to put the hands on.

Thanks a lot.

- Marco (mkdm)
  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:  moritzbock (MORITZ)
8064.11 In reply to 8064.8 
Hi Max,
very helpful - thank you
-moritz
  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
8064.12 In reply to 8064.8 
Hi Max, it's a good idea but one pretty big downside is that it will be easy for this script to break things if the default UI changes in structure, either in the ordering of palettes or for any new things added to Draw curve or Construct.

And with it running automatically it will be pretty easy for someone to forget they installed it and they will get confused why some new version's UI is missing things.

The content and ordering of the side pane palettes has not changed for a long time, but at some point it will when new areas like dimensioning are added.

- 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:  Max Smirnov (SMIRNOV)
8064.13 In reply to 8064.12 
Hi Michael,

yes, you're right. I wrote this script for myself, so I didn't think about this.
I updated the script. Now it checks a length of SidePane.htm body tag.
  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:  mkdm
8064.14 In reply to 8064.13 
Hi max.

Hmmm...Michael as pointed out the right thing...as usual.
I didn't realize that issue. But for me your setup is a good starting point.
I really like "all things in less panel" :)

@You : "...I updated the script..."

Where's the updated version ? Thanks.


@You : "...Now it checks a length of SidePane.htm body tag..."

Could you please be more precise ? What's the thing you are checking ?

Thanks a lot.

- Marco (mkdm)
  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:  Max Smirnov (SMIRNOV)
8064.15 In reply to 8064.14 
Hi Marco,

>>Where's the updated version ?
download the script again.
http://moi3d.com/forum/index.php?webtag=MOI&msg=8064.8

>>What's the thing you are checking ?
I added a line:
code:
if (doc.getElementsByTagName("body")[0].innerHTML.length === 19454) ... 
  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
8064.16 In reply to 8064.15 
Thanks Max, that will prevent some future confusion I'm sure.

When that does change it shouldn't be difficult to update this script as well at that point.

Thanks, - 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:  mkdm
8064.17 In reply to 8064.15 
Thanks a lot Max!

@You : "...I added a line:..."

A neat trick :)

- Marco (mkdm)
  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:  AlexPolo
8064.18 
Hi Max,

Many thanks in advance - unfortunately I have copied into this location and I cant get it to work.

C:\Users\lapkad\AppData\Roaming\Moi\startup

using win10 and MOI FEB release.
  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:  mkdm
8064.19 In reply to 8064.18 
Hi Alex.

@You : "...C:\Users\lapkad\AppData\Roaming\Moi\startup..."

Very strange...for me works flawlessly.

Ciao.

- Marco (mkdm)
  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
8064.20 In reply to 8064.18 
Hi Alex, are you launching MoI by double clicking on a file or just launching it all by itself?

@Max - when MoI is launched and given a file to open, the file will be opened before startup scripts run and the pieces of the sidepane that holds the current filename will be different and so will yield a different length. So maybe get the length of the id="MiddleBody" element that won't include the current filename, or look at the SidePane.htm file directly instead of the dynamic HTML content...

- 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
 

Reply to All Reply to All

 

 
Show messages:  1-20  21-25