Results 1 to 4 of 4

Thread: Opening and closing windows (specifically the node editor window) with python?

  1. #1
    can't.. re.. member stib's Avatar
    Join Date
    Apr 2003
    Location
    [0,0,0]
    Posts
    958

    Opening and closing windows (specifically the node editor window) with python?

    I'd love to have a keyboard shortcut to open and close the node editor window. I use it for everything, and usually have to go full screen to fit my more complicated node networks into it. But there's no way of assigning a keyboard shortcut because it doesn't appear in the command list. Does python have control over UI things like this? I'm ok at python, but I haven't yet investigated writing python plug-ins for LW.
    2 × Xeon 2690 - 20 cores @ 3GHz, 2 × NVIDIA GeForce Titan Black 6GB, 64GB RAM, Windows 7 Pro
    MacBook Pro, Intel Core i7 2.6Ghz, El Capitan

    nerdiness and free stuff at my blob

  2. #2
    Goes bump in the night RebelHill's Avatar
    Join Date
    Nov 2003
    Location
    jersey
    Posts
    5,666
    Node editor is part of the nodeEditor global LWNodeEditorFuncs... You can't just enter some command to open/close them like clicking the button in the interface, as they pop up so many places. You need to get (or create) an instance of a node window and operate on that object. Im not sure which bits of this are available to python yet (havent dug so much), but check out the Globals section of the sdk for more info.
    LSR Surface and Rendering Tuts.
    RHiggit Rigging and Animation Tools
    RHA Animation Tutorials
    RHR Rigging Tutorials
    RHN Nodal Tutorials
    YT Vids Tuts for all

  3. #3
    TrueArt Support
    Join Date
    Feb 2003
    Location
    Poland
    Posts
    7,758
    There is no single Node Editor. Although there is just one window visible at a time, there is dozen of Node Editors in whole app.
    To open Node Editor you have to call LWNodeEditorFuncs->openNodeEditor( NodeEditorID );
    So you need to know which exactly Node Editor you want from perhaps hundreds.
    You can get one from LWSurfaceFuncs->getNodeEditor( LWSurfaceID );
    Again you need to know which surface is active.
    And this info is not available in LWSurfaceEditorFuncs.
    We could create a tool opening Node Editor of the first surface of currently active item, but if you would select 2nd surface, it will open again 1st surface Node Editor (whatever is on top of surface list).
    LightWave Plugins
    Global Materials for LightWave 2019
    Custom plugin writing. Request a quote.

  4. #4
    can't.. re.. member stib's Avatar
    Join Date
    Apr 2003
    Location
    [0,0,0]
    Posts
    958
    Does that mean you could have multiple node editors open at once? That would be good, when you're copying nodes from your instancer to your nodal motion and displacement to your surface.
    2 × Xeon 2690 - 20 cores @ 3GHz, 2 × NVIDIA GeForce Titan Black 6GB, 64GB RAM, Windows 7 Pro
    MacBook Pro, Intel Core i7 2.6Ghz, El Capitan

    nerdiness and free stuff at my blob

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
  •