Results 1 to 8 of 8

Thread: LScript improvements/ stability...

  1. #1

    LScript improvements/ stability...

    another example of how current 3rd part software is limited in running well on macs: http://www.newtek.com/forums/showpos...47&postcount=4

    please chilton, can we get a stable and 100% compatible lscript on macs soon? apparently a sort of systematic cleanup is needed. i know many examples of lscripts not working on OSX, it doesn't seem to be a small single bug.

    can we get any statement from anyone at NT of being aware and caring about this problem, please?

    markus
    3dworks visual computing
    demo reel on vimeo
    instagram

    OSX 10.12.x, macpro 5.1, nvidia gtx 980 ti, LW2015.x / 2018.x, octane 3.x

  2. #2
    Heffalump
    Join Date
    Feb 2003
    Location
    Away
    Posts
    3,897
    Providing a list of scripts would be worthwhile. My limited experience has been that all scripts work, with the exception of those that touch the filesystem (due to the new file separator under UB LW - '/' instead of ':').

    Lernie's script was the first case I have seen where it simply blew up on a Mac, for a number of reasons. The bug report from Lernie was closed, unhelpfully, without comment from NewTek. I'm needling them now to find out why because I went to some trouble to persuade Lernie to file a bug with them in the first place, just to have it seemingly dismissed by the NT devs. Much unhappiness is the result.
    Inactive.

  3. #3
    Registered User
    Join Date
    Jun 2006
    Location
    San Antonio
    Posts
    2,346
    Hi,

    Well, if we have bug reports regarding these types of issues, we fix them. Compared to some bugs, these are relatively simple.

    The LScript system is pretty straightforward. Calls go into the 'core' of LightWave the same way interacting with objects does. The problem areas tend to be file paths, which differ from platform to platform.

    Furthermore, you can execute any LScript from AppleScript, and a good deal of effort went into making that possible. So narrowing down bugs like this on the Mac is pretty easy.

    -Chilton
    Last edited by Chilton; 07-30-2008 at 11:05 AM. Reason: Replaced with my earlier version, which I did not hit the 'submit' button on.

  4. #4
    Heffalump
    Join Date
    Feb 2003
    Location
    Away
    Posts
    3,897
    Off-topic, but is there any documentation of the AppleScript support? There's no integrated documentation for UB LW (still! unless I missed something), so it's not helpful to refer to something that I find myself unable to locate a reference for.
    Inactive.

  5. #5
    Registered User
    Join Date
    Jun 2006
    Location
    San Antonio
    Posts
    2,346
    Hi Phil,

    It's a far cry from what I wish I had time to put together, but LightWave's AppleScript Dictionary should work. If you drag Layout onto Script Editor, you will find that it has a command entry, and says this...

    "Command v : Issue a text-based LightWave command. To see the available commands in Layout, issue the command: 'SaveCommandList'.
    Command list of text : LightWave command string (space separates parameters)"

    So two examples would be...

    tell application "Layout"
    Command "SaveCommandList"
    end tell

    tell application "Layout"
    Command "About"
    end tell


    ...The first of those will prompt you for a save file location. Save that file and take a look inside. Any of those commands will work via 'Command' in AppleScript.

    The second one opens the about box.


    HTH,
    -Chilton

  6. #6
    Registered User Kuzey's Avatar
    Join Date
    Feb 2003
    Location
    Melbourne
    Posts
    5,262
    Quote Originally Posted by Chilton View Post

    So two examples would be...

    tell application "Layout"
    Command "SaveCommandList"
    end tell

    tell application "Layout"
    Command "About"
    end tell


    ...The first of those will prompt you for a save file location. Save that file and take a look inside. Any of those commands will work via 'Command' in AppleScript.

    The second one opens the about box.


    HTH,
    -Chilton
    Ahh...I was wondering about the syntax because I couldn't get it to work...I was missing the command bit. I must give it another go


    Kuzey

  7. #7
    Registered User
    Join Date
    Jun 2006
    Location
    San Antonio
    Posts
    2,346
    It went through a lot of iterations. At first, we wrapped all kinds of things in AppleScript calls, so that it would make sense to AppleScript purists. But this added layers of complexity to the code that would only contribute to bug lists in the future. So this somewhat spartan approach was what we ended on.

    SPARTAN!!!

    -Chilton

  8. #8
    Quote Originally Posted by Phil View Post
    Lernie's script was the first case I have seen where it simply blew up on a Mac, for a number of reasons.
    Not quite Phil. Anything with a mac version probably started out working on PC and just blowing up on Mac. PassPort was terrible for a long while. The difference is that I had the benefit of years of mac scripting (so I knew what problems to preempt!) and a mac workstation to test and troubleshoot as I went. And of course I had to file all the breakages as bugs to get things fixed, which thankfully is what happened (thanks to Chilton, Chuck, and Bob Hood).

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
  •