Results 1 to 13 of 13

Thread: Lightwave plugin - AHK, Select Connected

  1. #1

    Lightwave plugin - AHK, Select Connected


    runs the "Select Connected Polys" function when holding down Ctrl+RightClick

    Lightwave plugin - AHK, Select Connected
    http://youtu.be/lLC2ueydX6s

    the code >

    #IfWinActive Modeler

    ^RButton::
    Click
    Send, ]
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  2. #2
    Stuck in a very big cube Waves of light's Avatar
    Join Date
    Aug 2007
    Location
    South Yorkshire, England
    Posts
    2,500
    Seriously, you have opened up my eyes this morning. I always use CRTL+SHIFT+RMB/LMB/MMB menus to speed up my workflow and change shortcuts that are towards the other end of the keyboard closer to where my left hand sits.

    I've now setup AHK and I can already see a speed increase in modeling. I've set 1 to Select Points/Polys/Edges, using your code too.

    Thanks a bunch.

    Ricky.

    EDIT: I've connect selected to SHIFT+RMB - that way, I don't have to release the SHIFT button, I've I'm selecting additional polys from other objects and then connect selecting the lot.
    Last edited by Waves of light; 02-04-2014 at 04:51 AM.


    Systen Spec: i7 4930k (OC @4.5ghz),ASUS p9x79 MB, 32GB Ballistix RAM, H60 cooling, Samsung SSD 120GB, WD 1TB

  3. #3



    glad to help...

    it's very nice to see this is of use, sometimes when people don't reply i kinda get second thoughts about the trick...

    using Shift,... nice one... ;]
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  4. #4

    using it to speed up tweaks of individual objects >

    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  5. #5
    Stuck in a very big cube Waves of light's Avatar
    Join Date
    Aug 2007
    Location
    South Yorkshire, England
    Posts
    2,500
    I wouldn't worry too much. You create a lot of videos and I know I'm guilty of watching and then not leaving a comment. I think it's just because folks are so busy.

    Just gotta go through them all now and create a cheat sheet. It will take a little time for my brain to adjust, but once it does, I'll save loads of modeling time.

    The code below is just for my mouse buttons and SHIFT Key. These allow me to keep my fingers on or off the SHIFT key, whilst being able to select, select connected, expand/contract selection, select loop, select next/previous loop. And I have Select Path keyed to SHIFT+C.

    This is a massive time saver.

    EDIT: I've now mapped CTRL+MouseWheel to Select Switch.

    Code:
    ; MOUSE BUTTON CHANGES.
    ; BEGIN.
    
    MButton:: Send, {Delete}
    WheelUp:: Send, {Up}
    WheelDown:: Send, {Down}
    +WheelUp:: Send, +]
    +WheelDown:: Send, +[
    +RButton:: Send, ]
    +MButton:: Send, {Right}
    ^WheelUp:: Send, +^o
    ^WheelDown:: Send, +^o
    
    ; END.
    Last edited by Waves of light; 02-04-2014 at 07:42 AM.


    Systen Spec: i7 4930k (OC @4.5ghz),ASUS p9x79 MB, 32GB Ballistix RAM, H60 cooling, Samsung SSD 120GB, WD 1TB

  6. #6
    RETROGRADER prometheus's Avatar
    Join Date
    Aug 2003
    Location
    sweden stockholm
    Posts
    16,192
    Thanks erikals, I need a better easier way of selecting connected, havenīt installed autohotkey, will have to take a look at that..though this is something the lightwave group need to hard code in the selection modes,modo has it..item select.

    I would prefer also just use a middle mouse click or double click to run it.
    not sure how this script works now, but canīt you just map it to shift and then middle click on one connected item? I donīt like the two button then mouse button workflow.

    I did come across this thread thanks to the lightwave search, so I wasnīt browsing the forums first, that means your videos are as always appreciated and useful.

    Michael

  7. #7
    Stuck in a very big cube Waves of light's Avatar
    Join Date
    Aug 2007
    Location
    South Yorkshire, England
    Posts
    2,500
    Quote Originally Posted by prometheus View Post
    Thanks erikals, I need a better easier way of selecting connected, havenīt installed autohotkey, will have to take a look at that..though this is something the lightwave group need to hard code in the selection modes,modo has it..item select.

    I would prefer also just use a middle mouse click or double click to run it.
    not sure how this script works now, but canīt you just map it to shift and then middle click on one connected item? I donīt like the two button then mouse button workflow.

    I did come across this thread thanks to the lightwave search, so I wasnīt browsing the forums first, that means your videos are as always appreciated and useful.

    Michael

    Michael - You can pretty much map any key (there are some pitfalls).

    For easy selection I now use this as part of my setup:



    Click image for larger version. 

Name:	AHK_CHeatSheet.jpg 
Views:	449 
Size:	47.2 KB 
ID:	119918

    And this is the code:

    Code:
    ; MOUSE BUTTON CHANGES.
    ; BEGIN.
    
    #IfWinActive Modeler
    
    MButton:: Send, {Delete}
    WheelUp:: Send, {Up}
    WheelDown:: Send, {Down}
    +WheelUp:: Send, +]
    +WheelDown:: Send, +[
    ^RButton:: Send, ]
    +MButton:: Send, {Right}
    ^WheelUp:: Send, +^o
    ^WheelDown:: Send, +^o
    
    ; END.


    Systen Spec: i7 4930k (OC @4.5ghz),ASUS p9x79 MB, 32GB Ballistix RAM, H60 cooling, Samsung SSD 120GB, WD 1TB

  8. #8
    EDITED: Never mind... wrong question
    Last edited by vector; 03-08-2016 at 01:24 PM.

  9. #9

    vector, install autohotkey.com to use these scripts  
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

  10. #10
    Thanks, Erikals. Yes, I didn't know the soft. After a while I saw my question was wrong: You weren't talking about lscript but third-party solution. Finally I doscovered AHK and installed it and now enjoying your codes It's great to select connected just with a click... and more

  11. #11
    Axes grinder- Dongle #99
    Join Date
    Jul 2003
    Location
    Seattle
    Posts
    14,739
    ?? SELECT CONNECTED is already only one keypress: what's the difficulty?

    I do admit I like the idea of expanding/contracting Selections with the mouse wheel, and MMB Delete looks nice too, since it's rather hard to CLICK the MMB (IMO). But these are pretty straightforward/mundane AHK tasks: chains of keypresses and or auto-clicking on panel controls is more impressive.
    They only call it 'class warfare' when we fight back.
    Praise to Buddha! #resist
    Chard's Credo-"Documentation is PART of the Interface"
    Film the cops. Always FILM THE COPS. Use this app.

  12. #12
    Quote Originally Posted by Waves of light View Post
    Michael - You can pretty much map any key (there are some pitfalls).

    For easy selection I now use this as part of my setup:



    Click image for larger version. 

Name:	AHK_CHeatSheet.jpg 
Views:	449 
Size:	47.2 KB 
ID:	119918

    And this is the code:

    Code:
    ; MOUSE BUTTON CHANGES.
    ; BEGIN.
    
    #IfWinActive Modeler
    
    MButton:: Send, {Delete}
    WheelUp:: Send, {Up}
    WheelDown:: Send, {Down}
    +WheelUp:: Send, +]
    +WheelDown:: Send, +[
    ^RButton:: Send, ]
    +MButton:: Send, {Right}
    ^WheelUp:: Send, +^o
    ^WheelDown:: Send, +^o
    
    ; END.
    Expand contract selection involves { and } I suppose +] +[ are used instead { and } because they are script elements... but they don't work for me

    I also notice you miss the +LButton. I added

    +LButton:: Send, /

    for unselect... guys, this is addictive

  13. #13

    ?? SELECT CONNECTED is already only one keypress: what's the difficulty?
    here, i'm showing how to add "select connected" to a mouse button
    some might not like it, which is quite alright, but i do. thereby showing the technique.

    guys, this is addictive
    i know !  
    LW vidz   DPont donate   LightWiki   RHiggit   IKBooster   My vidz

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •