Results 1 to 2 of 2

Thread: Problems over problems and such a weak documentation

  1. #1
    Registered User
    Join Date
    May 2017
    Location
    Lampertheim, Germany
    Posts
    124

    Problems over problems and such a weak documentation

    I get more and more frustrated. Even the easyest things went wrong.

    Can anybody give me an example of how to use "move" in lwsdk.pris

    The module is initialized and all had functioned well... but move...

    if I do

    Code:
    movv=lwsdk.Vector(1.0,1.0,1.0)
    mcmd.move(movv)
    
    the Console Pops up and says:
      File "D:\NewTek\LightWave_2018.0.2\bin\lwsdk\pris\modeler\__init__.py", line 2466, in move
        return _move_code("MOVE", offset, arg2, arg3)
      File "D:\NewTek\LightWave_2018.0.2\bin\lwsdk\pris\modeler\__init__.py", line 2440, in _move_code
        elif isinstance(offset, (lwsdk.Vector, list, typle)):
    NameError: global name 'typle' is not defined
    using the same Vector with:
    mcmd.rotate(45,"X",movv)
    all goes well, so it seems the vector is right.

    and if i feed the move directly:
    Code:
    mcmd.move(1.0,1.0,1.0)
    I will get the following Error:
    Click image for larger version. 

Name:	error.jpg 
Views:	54 
Size:	10.8 KB 
ID:	140939

    even if I say

    Code:
    mcmd.move(float(1.0),float(1.0),float(1.0))
    I get the error

    Can anybody please help me out

    I am so frustrated about that Situation. Every Information must be searched bit by bit in hours and hours.

    Please help

    Regards,
    KANUSO
    Last edited by KANUSO; 03-30-2018 at 01:26 PM.

  2. #2
    Registered User
    Join Date
    May 2017
    Location
    Lampertheim, Germany
    Posts
    124
    After hours of try and error, hours of searching for Information in the Internet, I thought that it is enough and changed the line with the error in the __init__.py for the pris/modeler

    here what I did:
    the original line (2440):
    elif isinstance(offset, (lwsdk.Vector, list, typle)):
    which is in fact wrong !!!
    I changed it to:
    elif isinstance(offset, (lwsdk.Vector, list, tuple)):

    I changed from "typle" to "tuple" and all is going right now. I will use the Feedback Assistent to inform NT about this error

    Regards,
    KANUSO

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
  •