Paste viewport translation and rotation should be copy instead.

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Paste viewport translation and rotation should be copy instead.

nophead
The paste viewport translation and rotation menu options don't do anything if one is using an external editor and are not very natural operations even when one is. I think they would be more useful and normal as copy viewport translation / rotation instead that copied to the clipboard.

Would anybody object if I changed them?




_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

MichaelAtOz
Administrator
Perhaps make the copy variety happen by shift-click or similar.
Add Shift-Ctrt-T for translation shortcut.
Need to find a shortcut for the rotation flavour, spare keys are getting
tight, especially ones that are somewhat logical/reflective-of-function.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
I am not keen on adding even more menu options. I think the existing ones were poorly concieved, perhaps before the external editor option was added.

It seems a bit odd to me placing your cursor in the editor and then going to a menu that pastes to the cursor. I often ended up pasting it to the wrong place and then moving it. More natural to copy to the clipboard and then paste whereever you want. I can't think of another application that pastes for somewhere other than the clipboard, but lots of applications can copy different things to the clipboard.


On Sun, 9 Dec 2018 at 21:27, MichaelAtOz <[hidden email]> wrote:
Perhaps make the copy variety happen by shift-click or similar.
Add Shift-Ctrt-T for translation shortcut.
Need to find a shortcut for the rotation flavour, spare keys are getting
tight, especially ones that are somewhat logical/reflective-of-function.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

MichaelAtOz
Administrator
In reply to this post by MichaelAtOz
https://github.com/openscad/openscad/wiki/Keyboard-Shortcuts

ALT-keys don't seem to be used, anyone know if there is/was an issue, or we
just never ventured there?

Re shortcut for Paste_Viewport_Rotation, it appears keys B H J K L M are
free.
Nothing seems like a good mnemonic or logical match. Anyone?

If there is no issue with ALT, perhaps ALT-R and Shift-ALT-R for the Copy
flavour?  



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

MichaelAtOz
Administrator
Note I hadn't seen your previous post, so the above is not in Reply.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

tp3
In reply to this post by MichaelAtOz
I think renaming it to "Copy ..." and changing the behavior to put
the value into the clipboard makes sense. I'm not sure there's room
for 2 variants of that feature.

ciao,
   Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

MichaelAtOz
Administrator
In reply to this post by nophead
nophead wrote
> It seems a bit odd to me placing your cursor in the editor and then going
> to a menu that pastes to the cursor. I often ended up pasting it to the
> wrong place and then moving it. More natural to copy to the clipboard and
> then paste whereever you want. I can't think of another application that
> pastes for somewhere other than the clipboard, but lots of applications
> can
> copy different things to the clipboard.

I rarely use these functions, so not fussed apart from the don't change UX
unless you have to principle.

You also have the external editor focus. I haven't been doing a lot of that
lately.
With OpenSCAD GUI as your editor, it could make sense, particularly of you
already had something in the clipboard.

I doing the devils work here. We probably need comment from people who
actually use it often.

But as I said, not fussed.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
I use it to pose views for exporting as png files. Rather than specifing unique camera parameters on the command line I realised I only need the angle as the command line can now just do autocenter and viewall. I use imagemagick to trim the excess blank around the edges as viewall is conservative.

I use this pose module in the code and fill it in from the viewing angle I find looks best on the GUI.
//
// Pose an assembly for rendering to png
//
module pose(a)
    if(is_undef($pose))
        children();
    else
        let($pose = undef, $posed = true) // only pose the top level
            rotate([0, 0, 25 - a.z])
                rotate([0, -a.y, 0])
                    rotate([a.x - 55, 0, 0])
                        children();

The pose module is a no op while I am viewing in the GUI. The command line sets $pose and then pose rotates its children to the angle pasted from the GUI. E.g.

module main_assembly() pose([210, 0, 180]) {
   ....
}

With this I now have scipts than can automatically generate images of all the assemblies in my project from the BOM information emitted by echos. I do them at four times the final resolution and downsample them in imagemagick to get antialised images like this:

image.png










On Sun, 9 Dec 2018 at 22:14, MichaelAtOz <[hidden email]> wrote:
nophead wrote
> It seems a bit odd to me placing your cursor in the editor and then going
> to a menu that pastes to the cursor. I often ended up pasting it to the
> wrong place and then moving it. More natural to copy to the clipboard and
> then paste whereever you want. I can't think of another application that
> pastes for somewhere other than the clipboard, but lots of applications
> can
> copy different things to the clipboard.

I rarely use these functions, so not fussed apart from the don't change UX
unless you have to principle.

You also have the external editor focus. I haven't been doing a lot of that
lately.
With OpenSCAD GUI as your editor, it could make sense, particularly of you
already had something in the clipboard.

I doing the devils work here. We probably need comment from people who
actually use it often.

But as I said, not fussed.



-----
Admin - email* me if you need anything, or if I've done something stupid...

* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”   Fight it! http://www.ourfairdeal.org/   time is running out!
--
Sent from: http://forum.openscad.org/

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

JordanBrown
In reply to this post by MichaelAtOz
On 12/9/2018 2:02 PM, MichaelAtOz wrote:
ALT-keys don't seem to be used, anyone know if there is/was an issue, or we
just never ventured there?


In Windows, Alt+X opens the menu that has an underlined X in its name.  Thus, typically, Alt+F opens the File menu, Alt+E opens the Edit menu, et cetera.

Overloading this seems undesirable.



_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
What do the ampersands in menu names mean? E.g. <string>P&amp;aste viewport translation</string>

On Mon, 10 Dec 2018 at 09:13, Jordan Brown <[hidden email]> wrote:
On 12/9/2018 2:02 PM, MichaelAtOz wrote:
ALT-keys don't seem to be used, anyone know if there is/was an issue, or we
just never ventured there?


In Windows, Alt+X opens the menu that has an underlined X in its name.  Thus, typically, Alt+F opens the File menu, Alt+E opens the Edit menu, et cetera.

Overloading this seems undesirable.


_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
tp3
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

tp3
On 25.12.18 12:19, nop head wrote:
> What do the ampersands in menu names mean? E.g. <string>P&amp;aste viewport translation</string>

Quoting Wikipedia: "A mnemonic is an underlined alphanumeric character,
typically appearing in a menu title, menu item, or the text of a button
or component of the user interface."

In this case it would be used via ALT+E (to open the Design menu) and
then the "a" key which is the mnemonic to paste the viewport translation.

ciao,
   Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
-- Torsten
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
But they are not underlined on Win7. They do seem to work if you type them but there is no clue to what they are.

They are underlined in LibraOffice though, so is this a bug in OpenSCAD?

On Tue, 25 Dec 2018 at 11:30, Torsten Paul <[hidden email]> wrote:
On 25.12.18 12:19, nop head wrote:
> What do the ampersands in menu names mean? E.g. <string>P&amp;aste viewport translation</string>

Quoting Wikipedia: "A mnemonic is an underlined alphanumeric character,
typically appearing in a menu title, menu item, or the text of a button
or component of the user interface."

In this case it would be used via ALT+E (to open the Design menu) and
then the "a" key which is the mnemonic to paste the viewport translation.

ciao,
   Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
Ahh they only appear if I open the menu with ALT. Same on an MFC application I wrote myself 18 years ago, so I must have known about it then!

On Tue, 25 Dec 2018 at 11:39, nop head <[hidden email]> wrote:
But they are not underlined on Win7. They do seem to work if you type them but there is no clue to what they are.

They are underlined in LibraOffice though, so is this a bug in OpenSCAD?

On Tue, 25 Dec 2018 at 11:30, Torsten Paul <[hidden email]> wrote:
On 25.12.18 12:19, nop head wrote:
> What do the ampersands in menu names mean? E.g. <string>P&amp;aste viewport translation</string>

Quoting Wikipedia: "A mnemonic is an underlined alphanumeric character,
typically appearing in a menu title, menu item, or the text of a button
or component of the user interface."

In this case it would be used via ALT+E (to open the Design menu) and
then the "a" key which is the mnemonic to paste the viewport translation.

ciao,
   Torsten.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

MichaelAtOz
Administrator
nophead wrote
Ahh they only appear if I open the menu with ALT.
One of the worst changes in Windows 7 was to hide these 'Access Keys' as Microsoft calls them, unless activated by the keyboard. I have this two handed technique, click on the menu, then use the other hand to hit the access key. Then they disppearded... However you can restore the XP behaviour.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!


Sent from the OpenSCAD mailing list archive at Nabble.com.

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead
Thanks, that works. I think Windows peaked at XP and has gone downhill since.

On Tue, 25 Dec 2018 at 21:03, MichaelAtOz <[hidden email]> wrote:
nophead wrote
Ahh they only appear if I open the menu with ALT.
One of the worst changes in Windows 7 was to hide these 'Access Keys' as Microsoft calls them, unless activated by the keyboard. I have this two handed technique, click on the menu, then use the other hand to hit the access key. Then they disppearded... However you can restore the XP behaviour.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

RobWLakes
That is why we have Linux Distros like Ubuntu Mate, to rejoice in functionality over those capitalistic urges just makes money from a phoney makeover of crap "improvements".
Cheers, RobW

On 26 December 2018 9:04:07 pm AEDT, nop head <[hidden email]> wrote:
Thanks, that works. I think Windows peaked at XP and has gone downhill since.

On Tue, 25 Dec 2018 at 21:03, MichaelAtOz <[hidden email]> wrote:
nophead wrote
Ahh they only appear if I open the menu with ALT.
One of the worst changes in Windows 7 was to hide these 'Access Keys' as Microsoft calls them, unless activated by the keyboard. I have this two handed technique, click on the menu, then use the other hand to hit the access key. Then they disppearded... However you can restore the XP behaviour.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Rob W
Lake Tyers Beach,
Victoria, Australia
Reply | Threaded
Open this post in threaded view
|

Re: Paste viewport translation and rotation should be copy instead.

nophead

On Wed, 26 Dec 2018 at 10:26, Rob Ward <[hidden email]> wrote:
That is why we have Linux Distros like Ubuntu Mate, to rejoice in functionality over those capitalistic urges just makes money from a phoney makeover of crap "improvements".
Cheers, RobW

On 26 December 2018 9:04:07 pm AEDT, nop head <[hidden email]> wrote:
Thanks, that works. I think Windows peaked at XP and has gone downhill since.

On Tue, 25 Dec 2018 at 21:03, MichaelAtOz <[hidden email]> wrote:
nophead wrote
Ahh they only appear if I open the menu with ALT.
One of the worst changes in Windows 7 was to hide these 'Access Keys' as Microsoft calls them, unless activated by the keyboard. I have this two handed technique, click on the menu, then use the other hand to hit the access key. Then they disppearded... However you can restore the XP behaviour.
Admin - email* me if you need anything,
or if I've done something stupid...
* click on my MichaelAtOz label, there is a link to email me.

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work.
Obviously inclusion of works of previous authors is not included in the above.


The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out!


Sent from the OpenSCAD mailing list archive at Nabble.com.
_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

_______________________________________________
OpenSCAD mailing list
[hidden email]
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org