helppyFormex - Support: sr #109624, default rotation angle from GUI...


sr #109624: default rotation angle from GUI buttons

Submitted by:  francesco <francio>
Submitted on:  Wed 16 Jan 2019 03:47:23 PM UTC  
Category:  GUI Priority:  5 - Normal
Severity:  3 - Normal Privacy:  Public
Assigned to:  None Open/Closed:  Open
Operating System:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 18 Jan 2019 06:06:34 PM UTC, comment #5: 

In commit b9ac0218 I have fixed the problem of the double speed of the rotation buttons. If you have set customizations for any of gui/rotfactor, gui/panfactor, gui/zoomfactor, you should now double their value to get the same effect.

The default values in pyformexrc have also been changed, though not to exactly the double. I have recalibrated them to some sensible for my liking, based on the examples Baumkuchen, Helix and HorseSlice.
The default rotfactor is now 7.5 degrees. This is somewhat slower than before, but I choose it because it allows to set the angle precisely at 30, 45 or 60 degree, which may be handy sometimes.

Benedict Verhegghe <bverheg>
Project Administrator
Fri 18 Jan 2019 05:59:17 PM UTC, comment #4: 

And I forgot: Settings->Settings_Dialog has a section Mouse where you can set this factor.

Benedict Verhegghe <bverheg>
Project Administrator
Fri 18 Jan 2019 03:44:08 PM UTC, comment #3: 

Your question is not fully clear to me.
It is currently set as program default in pyformexrc, under the
gui section:

rotfactor = 5.

It can be customized in the same way by the user in his
~/.config/pyformex/pyformex.conf. There is a Settings->Edit_Preferences_File button that can help.

And finally, you can set in a script as explained in comment #1.

Benedict Verhegghe <bverheg>
Project Administrator
Fri 18 Jan 2019 01:15:11 PM UTC, comment #2: 

Can this be set also set as a default preference?

francesco <francio>
Project Member
Wed 16 Jan 2019 04:32:23 PM UTC, comment #1: 

It can be set in your config file (see pyformexrc for format)
or in your script or the console as folllows:

pf.cfg['gui/rotfactor'] = 5.

Note that 5. is the default setting, but it turns out that the rotation buttons rotate at the double of the setting. We need to check why and fix this. And we probable should add different factors for different rotation axes.

Benedict Verhegghe <bverheg>
Project Administrator
Wed 16 Jan 2019 03:47:23 PM UTC, original submission:  

How can I change the default rotation angle of the buttons to rotate the scene?
the default is 10 degrees, but I woudl like to customize it to a lower value.

francesco <francio>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by bverheg (Posted a comment)
  • -email is unavailable- added by francio (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.7