![]() |
#1 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,526
|
![]()
Add cursor key control to move the selection inside the TCE.
This mod requires editing of internal AC3D script files. If this is done wrong, you could stop AC3D from working. We recommend this is tested on an alternate installation/copy of AC3D. With a text editor, edit tcl/ac3duvedit.tcl Go to near the end of the file and find these two lines: Code:
bind .uvedit s { set uvmode surface ; ac3d uv_selectmode 0 ; uv_do_sensitivity } bind .uvedit v { set uvmode vertex; ac3d uv_selectmode 1 ; uv_do_sensitivity } Code:
set nudge_dist 0.01 bind .uvedit <Up> "ac3d uv_move_relative 0 $nudge_dist" bind .uvedit <Down> "ac3d uv_move_relative 0 -$nudge_dist" bind .uvedit <Left> "ac3d uv_move_relative -$nudge_dist 0" bind .uvedit <Right> "ac3d uv_move_relative $nudge_dist 0" Last edited by Andy; 29th September 2009 at 05:10 AM. |
![]() |
![]() |
![]() |
#2 |
Member
Expert member
Join Date: Sep 2009
Posts: 59
|
![]()
I did as suggested, but I cant seem to get this to work
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Advanced member
Join Date: May 2007
Location: Deiningen, Germany
Posts: 45
|
![]()
I'm using this modified code:
Code:
set nudge_dist 0.001 bind .uvedit <Up> "ac3d uv_move_relative 0 $nudge_dist" bind .uvedit <Down> "ac3d uv_move_relative 0 -$nudge_dist" bind .uvedit <Left> "ac3d uv_move_relative -$nudge_dist 0" bind .uvedit <Right> "ac3d uv_move_relative $nudge_dist 0" set nudge_far [expr $nudge_dist*10] bind .uvedit <Shift-Up> "ac3d uv_move_relative 0 $nudge_far" bind .uvedit <Shift-Down> "ac3d uv_move_relative 0 -$nudge_far" bind .uvedit <Shift-Left> "ac3d uv_move_relative -$nudge_far 0" bind .uvedit <Shift-Right> "ac3d uv_move_relative $nudge_far 0" set nudge_fine [expr $nudge_dist/10] bind .uvedit <Control-Up> "ac3d uv_move_relative 0 $nudge_fine" bind .uvedit <Control-Down> "ac3d uv_move_relative 0 -$nudge_fine" bind .uvedit <Control-Left> "ac3d uv_move_relative -$nudge_fine 0" bind .uvedit <Control-Right> "ac3d uv_move_relative $nudge_fine 0" Using the arrow-keys together with the Shift-key moves the selection 10 times as much as defined for "nudge_dist". Using the arrow-keys together with the Ctrl-key moves the selection a 10th of the defined value.
__________________
Mac Pro 8-Core - 12 GB RAM - ATI Radeon HD 5870 - VRAM 1024 MB - Mac OS X 10.6.7 - Cinema Display 20'' Whisky Air Charter - Virtual X-Plane Charter Company |
![]() |
![]() |
![]() |
#4 |
Administrator
Professional user
Join Date: Jun 2003
Posts: 4,526
|
![]()
great stuff!
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Professional user
Join Date: Feb 2004
Location: Portland, OR
Posts: 604
|
![]()
Great idea, one I've wished for for some time.
My only question is, what are the units for the nudge distance? Pixels? mm's? Or, can they be custom set?
__________________
Flight Sim Project Contributor My Gaming Rig: i5 2500K Quad-Core CPU at 3.3GHz MSI P67A-C43 mobo 4GB of PC12800 DDR3 memory Windows 7 1GB Galaxy GeForce GTX550 Ti video card GeForce 270.61 drivers (4/2011) Cougar joystick/throttle combo CH Pedals |
![]() |
![]() |
![]() |
#6 |
Senior Member
Professional user
Join Date: Nov 2007
Posts: 139
|
![]()
This would be fractions of the texture size. 0.01 is 1/100 of the texture image height or width. The first key bindings were added into the defaults for AC3D 6.7. The control and shift bindings are 1/1000 and 1/10 of the texture image size.
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|