Additional Shortcuts

Additional Shortcuts

Postby erbsen » Monday, 09.July 2012, 08:48

Adding OPs via mouse is fine and dandy but what about additional shortcuts for the most common Ops?
Is it possible?
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Additional Shortcuts

Postby Skinnytorus » Monday, 09.July 2012, 10:36

+1 here.
I have no doubt it is possible and will not cause any conflicts.
I suggest we make a uniform list of desirable new shortcuts. I will submit my suggestions shortly.
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby erbsen » Monday, 09.July 2012, 13:04

Here is my proposal.

wz4 Mesh 3
Extrude - e

wz4 RenderTree 4
Spline - S
Layer2D - L

New Wz4 Material 5
ModMaterial - m
SimpleMaterial - S
ModLight - L
Flat - f
Lambert -
Phong - p
Diffuse - d
Emissive -
Gloss -
NormalMap - n
Specular -
Const -
Tex2d - t
Tex2d Surround - T

any type:
Nop - N
Comment - .
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Additional Shortcuts

Postby Skinnytorus » Monday, 09.July 2012, 20:41

I agree with your choice! I would also consider:
wz4 Mesh 3
Bevel - b

Wz4 Material 5
Simple material - M (instead of S) - not sure about that - Shift+s is easier to press, but Shift+m brings in more logic ;)
Lambert - b
Emissive - e
Gloss - g
Specular - u
Const - c
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 07:46

So, I have not tested it yet, but adding extra shortcuts seems very easy by editing several source files.
The task seems to boil down to editing respective *_ops.ops files.

Here is how it is with Tous primitive in wz4_mesh_ops.ops:
" operator Wz4Mesh Torus()
{
column = 0;
shortcut = 'o';... "

Just add " shortcut = 'any key' " after "column = " for each operator you want to add a shortcut to.
I don't have wz at hand and maybe someone else might test it right now. Does it work?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 08:11

2 more things to note:
1. Path to *_ops.ops files: altona_wz4 / wz4 / wz4frlib /
2. I'm not sure if after adding the shortcuts menu column borders will widen accordingly. So, maybe some extra edits will be necessary...

ikam, what do you think?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby ikam » Tuesday, 10.July 2012, 08:31

yes it's ok fo operators when adding : shortcut = 'key';
Concerning windows it's different you need to edit the wire.txt and maybe other things I don't remember exactly.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 08:34

ikam
thanks, man.
i just thought... since you usually post pull requests, you might add the above mentioned shrtcuts in your next pull request. Please...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby ikam » Tuesday, 10.July 2012, 08:46

I don't have many spare time for now. Maybe you can do it ;)
If you need help I can tell you how tu use git.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 08:51

I feel I can try, but I think I will really need a quick guide from you. ;)
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby ikam » Tuesday, 10.July 2012, 09:06

good ;)
no problem.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 12:41

ikam
OK. I've read github's help and everything seems a bit clearer. What I can't understand is how to work with my local clone of FR repository.
I mean work with VS 2010 Express. It creates build directories right inside source file structure. Besides, I need to keep my custom altona_config.hpp
inside the file structure to make builds (plus vc project files). If it works this way, I always have to clean up my local repository before making pull requests which is quite absurd imho. ;)
How to work with it correctly? Can you describe your workflow?
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46

Re: Additional Shortcuts

Postby ikam » Tuesday, 10.July 2012, 13:41

Build directory and your altona_config.hpp are ignored on git so you can modify them as you want.
I will post a new thread specific to git use.
ikam
Operator
Operator
 
Posts: 911
Joined: Friday, 14.October 2011, 13:00
Location: France

Re: Additional Shortcuts

Postby erbsen » Tuesday, 10.July 2012, 18:31

Wz4 Material 5
Simple material - M (instead of S) - not sure about that - Shift+s is easier to press, but Shift+m brings in more logic ;)
You are right and we already use Shift+m for SetMaterial (which by the way i would like to get with m instead of Multiply but i think we cant do that).

I can live with your additions. :)
erbsen
Operator
Operator
 
Posts: 873
Joined: Thursday, 15.July 2004, 23:00
Location: Os

Re: Additional Shortcuts

Postby Skinnytorus » Tuesday, 10.July 2012, 20:43

I suggest we leave Multiply alone for now. It is a modelling tool and is supposed to be used more often than adding a material.
I'm not against changing it though - time will show...
Skinnytorus
Operator
Operator
 
Posts: 1300
Joined: Monday, 06.February 2012, 17:46


Return to Development and contribution



Who is online

Users browsing this forum: No registered users and 12 guests

cron