Results 1 to 7 of 7

Thread: Is there any documentation/reference for new Python in 2018?

  1. #1
    Registered User
    Join Date
    Nov 2016
    Location
    California
    Posts
    2

    Is there any documentation/reference for new Python in 2018?

    I've been eager to see what's possible with Python in 2018 but can't find any documentation or info on the scripting changes/additions?

  2. #2
    LightWave documentation BeeVee's Avatar
    Join Date
    Feb 2003
    Location
    Pessac
    Posts
    5,060
    The Python documentation is zipped in the SDK folder in your installation

    B
    Ben Vost - NewTek LightWave 3D development
    LightWave 3D Trial Edition
    AMD Threadripper 1950X, Windows 10 Pro 64-bit, 32GB RAM, nVidia GeForce GTX 1050Ti (4GB and 768 CUDA cores) and GTX 1080 (8GB and 2560 CUDA cores) driver version 430.86
    AMD FX8350 4.2 GHz, Windows 7 SP1 Home Premium 64-bit, 16GB RAM, nVidia GeForce GTX 1050Ti (416.34, 4GB and 768 CUDA cores)
    Dell Server, Windows 10 Pro, Intel Xeon E3-1220 @3.10 GHz, 8 GB RAM, Quadro K620
    Laptop with Intel i7, nVidia Quadro 2000Mw/ 2GB (377.83 and 192 CUDA cores), Windows 10 Professional 64-bit, 8GB RAM
    Mac Mini 2.26 GHz Core 2 Duo, 4 GB RAM, 10.10.3

  3. #3
    Registered User
    Join Date
    Nov 2016
    Location
    California
    Posts
    2
    Quote Originally Posted by BeeVee View Post
    The Python documentation is zipped in the SDK folder in your installation

    B
    Thanks!

  4. #4
    Electron wrangler jwiede's Avatar
    Join Date
    Aug 2007
    Location
    San Jose, CA
    Posts
    6,507
    Quote Originally Posted by BeeVee View Post
    The Python documentation is zipped in the SDK folder in your installation

    B
    Actually, just filed a bug on this (LWB-3317), but at least with 2018.0.1 install for OSX, the "lwpython.0.zip" archive file isn't present in the SDK directory. It's present in the LW2018.0 install's SDK directory, but something apparently went wrong during LW2018.0.1 installer package generation. I've tried installing multiple times, after multiple DLs of the installer package itself, and the "lwpython.0.zip" archive file reliably isn't present in LW2018.0.1's SDK dir (on OSX).

    I have no clue whether Windows install has the same issue, can't test it at this moment.

    If someone could post the "lwpython.0.zip" SDK for LW2018.0.1 Mac64 (or put up fixed installer package(s)), that'd be appreciated. Alternately, if there's no difference between the 2018.0 and 2018.0.1 versions of the Python SDK, we can just use the one from 2018.0, but would need official confirmation there's no differences.
    Last edited by jwiede; 02-07-2018 at 02:42 PM.
    John W.
    LW2015.3UB/2019.1.4 on MacPro(12C/24T/10.13.6),32GB RAM, NV 980ti

  5. #5
    Registered User
    Join Date
    May 2017
    Location
    Lampertheim, Germany
    Posts
    129
    Hi together,

    as sayed in the LScript-Forum I will give python a Chance,

    BUT ... BUT ... BUT

    I do not want to search for every bit of Information. Especially not in many different files. And especially not in the c++ docs if I Need python info.... The info therein is not fitting in every case.
    Is there realy no documentation on for eg how to build a user Interface?

    For example:
    I am not able to open a Panel which has the normal OS-look (the Icon at the top-left is missing as so as the closebutton to the top right)
    ... Yes I have tried the diferent PANF_ flags... all Shows the same optic
    Next Problem....
    How can I react on the mouse? how do I catch the PANF_MOUSETRAP or PANF_MOUSETRACK, how is that handler called? where to find this Information?
    Next Problem...
    I give a button_ctl a drawhandler (btn.userdraw)... but only drawMode 3 is reaching the handler... how can i reacto on other drawModes
    It does not make sense to get a userdrawn button if the system-erase did its job and the button will be empty after the mouse did hoover it

    I know, that you could not document every possible Situation, but such Basic things should be found in the docs (or even make some examples)

    I searched the Forum for sources of Information... and yes there was some info but I dont want to search for every bit of Information. This had to be part of the official docs from NT.

    Python is innately a text intensive language so I must invest more time to write scripts. And if I must search ervery peace of Information, than the time to write scripts did grow and grow and grow...

    Please give us a Documentation that is worth to be called so
    and next please... Don't let LScript die, because it is much faster to get results with it than in python... and most scripts don't Need to talk to other applications.

    This style of docs is something I did exspect for non-cost programs like blender....

    Why don't you give us the Information we Need in a way we Need? You have done such an excellent Job with LW, please do as so with the docs.

    Regards,
    KANUSO

  6. #6
    Justaddmilk.org was an excellent resource for python examples of the ui. Unfortunately it looks like the domain expired. If you can manage to find archived pages from waybackmachine that would be a quick way to see how to build ui items. If I get a chance I could post examples as that's how I built my scripts.
    My opinions and comments do not represent those of my employer.
    www.ernestpchan.com
    www.zazzle.com/gopuggo

  7. #7
    Registered User
    Join Date
    May 2017
    Location
    Lampertheim, Germany
    Posts
    129
    Thank you for ansering ernpchan.
    I will be interested in every python ui-example, it is really hard to find Information about.

    It is not the fact, that I am not able to build a sort of UI. But where can I get Information on reacting on mouse Actions?

    For example:
    If a user moves around the mouse and hoovers over an control, how can I react on this?

    I was able to build the following
    Click image for larger version. 

Name:	before.jpg 
Views:	79 
Size:	38.7 KB 
ID:	140904
    For my as someone who was never in touch with python, this was a hard work.
    Now take a look at the custom drawed Buttons at the bottom right of this requester. After the user hoovers a button, the button Looks like the following
    Click image for larger version. 

Name:	after.jpg 
Views:	74 
Size:	38.5 KB 
ID:	140905
    I did not find a way to react on this.

    What I discovered also is, that if I activate a userdraw function, the Event_func doesn't be called anymore. Now I think i do something wrong, but nowhere is the Information on how to manage this.
    I found some examples in the Internet, but the UI's that are in use there are... very very very simple.
    I don't know if you had a look at my nuArchitect bundle (can be found in the LScript Forum). Some of the requesters in this bundle even use a sort of custom-controls. But if I am not able to do such Basic stuff with python or there is no Information to find on how to do so, than... sorry... than python is not worth to look closer at it. At last to me. I don't want to spend hours to find out These things in the Internet. There should be some examples for such Basic stuff.

    By the way the docs mainly are some Kind of "look here... it does give this" and not "look here... so it is to be used"

    I am very frustrated at this Situation because LW is really great, why not the docs too?

    Regards,
    KANUSO

Tags for this Thread

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
  •