Results 1 to 5 of 5

Thread: Symmetry Mode Control

  1. #1
    Registered User
    Join Date
    Oct 2014
    Location
    UK
    Posts
    573

    Enable / Disable Symmetry Mode

    Hi All

    I need to be able to check if symmetry mode is on and then turn it off or on accordingly.
    Could someone help me find the variables or functions for this please? I just can't seem to find them in the reference or user guide.

    EDIT: Ok I have managed to detect for symmetry mode now. But I still can't work out how to enable or disable symmetry mode. I have tried setting LWM_MODE_SYMMETRY to 0 or 1, but it just deletes all geometry.
    Last edited by gamedesign1; 03-03-2017 at 05:16 AM.

  2. #2
    Registered User
    Join Date
    Oct 2014
    Location
    UK
    Posts
    573
    I am starting to think this is not something you can control with the SDK, Lscript or Python

  3. #3
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,891
    Workaround could be for Windows users: simulate key-press by user. Symmetry has shift-Y shortcut key.

    keybd_event()
    https://msdn.microsoft.com/en-us/library/ms646304.aspx

    SendInput()
    https://msdn.microsoft.com/en-us/library/ms646310.aspx
    Last edited by Sensei; 03-03-2017 at 06:42 AM.

  4. #4
    Super Member Kryslin's Avatar
    Join Date
    Feb 2009
    Location
    Prescott, IA
    Posts
    1,476
    I know there is a work around to detect symmetry in lScript, because the TA tools use it, but toggling it on and off?

    Hmm, perhaps using cmdseq() to call the actual command? I realize, Sensei, that your probably using C/C++, but surely the SDK has a similar command...

    Hmm,just tried it. I may need to find the correct cmd seq name, but I think this is one thing that can't be directly controlled via scripting/plugin.

    Sensei : If you are going to send keypresses to toggle symmetry, I'd read the key map or .cfg file first, to get the right key combination for that user, then send that, instead of assuming it's shift-Y. You never know if someone has changed it or not...
    Last edited by Kryslin; 03-03-2017 at 08:12 AM.
    --------
    My Scripts for Lightwave
    Intel Core i7 960 @3.20 Ghz, 24 GB ram, EVGA 6GB GTX980Ti "Classified" driving 2 x HP LA2405.

  5. #5
    Registered User
    Join Date
    Oct 2014
    Location
    UK
    Posts
    573
    Quote Originally Posted by Sensei View Post
    Workaround could be for Windows users: simulate key-press by user. Symmetry has shift-Y shortcut key.

    keybd_event()
    https://msdn.microsoft.com/en-us/library/ms646304.aspx

    SendInput()
    https://msdn.microsoft.com/en-us/library/ms646310.aspx
    Thanks Sensei, but I am using lscript and not C++

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
  •