Jump to content
3DCoat Forums

LightWave 10 Applink


Keeks
 Share

Recommended Posts

  • 3 weeks later...
  • Member

Just downloaded the manual install .lsc files, put them in my plugins folder, fired up Lightwave Layout and added all three buttons to my UI. When I attempt to run any of the three I get multiple errors. Attached are screen shots of what I see when I try to run the setup button, for example. Do I need to do some other manual configuration steps in order to get Applink for LW working on my Mac? I'm running LW 11.5, and Mountain Lion.

Thanks in advance!

post-26986-0-11663700-1361662686_thumb.p

post-26986-0-84787500-1361662686_thumb.p

  • Advanced Member

Just downloaded the manual install .lsc files, put them in my plugins folder, fired up Lightwave Layout and added all three buttons to my UI. When I attempt to run any of the three I get multiple errors. Attached are screen shots of what I see when I try to run the setup button, for example. Do I need to do some other manual configuration steps in order to get Applink for LW working on my Mac? I'm running LW 11.5, and Mountain Lion.

Thanks in advance!

Even though LScripts are platform agnostic, a lot of LScripts end up being in compatible purely because of differences in file paths bewtween mac and pc. Obviously this error is failing for you because the script is attempting to make a temp folder on a mac that is invalid. Perhaps the script is trying to use a C drive or something else in the string it is passing to mkdir (make directory). So it needs an update to work...

  • Member

Thanks for the responses. I found the source code for the plugins and took a look at the offending lines. That doesn't seem to be the problem: LW appears not to like the syntax for the string concatenation the first time, so the string never gets created and mkdir has no valid argument to work with, generating the second error.

I tried a couple of variations but I don't know lscript syntax so I wasn't successful, unfortunately.

  • Member

I don't think it's working in LW11.x that's why there's discussion about rewriting it above.

And a Mea Culpa for skimming the thread instead of reading it carefully. I'll just wait patiently like everyone else. :ph34r:

  • 4 weeks later...
  • Advanced Member

Thanks for the responses. I found the source code for the plugins and took a look at the offending lines. That doesn't seem to be the problem: LW appears not to like the syntax for the string concatenation the first time, so the string never gets created and mkdir has no valid argument to work with, generating the second error.

I tried a couple of variations but I don't know lscript syntax so I wasn't successful, unfortunately.

The culprit may also be that the slashes in the path are not right for an LScript string when passed to the command to make a directory. LScript needs them escaped. If you have a string like "Myfolder\MyPath" try making it "Myfolder\\MyPath" and see if that helps.

  • 2 weeks later...

New plugin version 2.0 has arrived.

I created Trello board where you can see status of progress, bugs, ideas and etc.

Join this group to make applink better and bring your own ideas.

What is new?

- New UI

- Written on Python (multi-platform Win/MacOS)

- Supported 3D-Coat V3/V4 (you can choose in GUI)

- Config file which saves main plug-in settings

- Compatible with latest applink specification 1.4

- Supported LW (11+)

ui1.jpgui2.jpg

Installation:

- Copy plug-in into LW plugins folder, for example: \\LW_11.0_PC64\support\plugins\3dcoat\

- After running LW a new command will appear in Edit Menu Layout -> Plug-ins -> 3D-Coat Applink 2.0

A little bit information about plugin and LW overall. So, I tried to hooked up nodes for preview final shading. Python way had a lot of bugs :(. I was thinking that c/c++ sdk will help me, in vain. One guy from TrueArt said me that it's impossible even through sdk. I can create new nodes, i have access to node editor just for making existing nodes and connecting them, BUT there is no way to set values on nodes through the code! This is f** ridicules! Only by hands! Finally, I decided to return back to Python, since it does make sense (faster to write a code). What about nodes? Actually I found one way, not simplest one, but it's possible to make it work. Need time for implementation.

For now plug-in supports only certain textures, that regular "surfaceEditor" allows to do and it SDK's functions:

- Color

- Specularity

- Luminosity

- NM (auto-imported via lwo file)

- Displ (doesn't work right now, in progress)

I hate LW SDK, but I have optimistic view :). Waiting for your suggestions and bug reports.

P.S. [>>] button is for putting some diagnostic information to PCore console (paths)

3dc_applink_beta1.zip

Edited by Styler
  • Like 2
  • Member

Thanks for this! Unfortunately don't have IE 9 at my works internet, so cannot view the Trello Board... but will download and try as soon as poss.

I know that the original Applink plugin managed to import nodes and connect them all up etc, just wouldn't have a clue how he did it... just that it must be possible. (Ah, I see... you cannot set values... this is horrific!!)

Could you get in contact with the original developer and ask how he managed it, or if he managed to do that?

Thanks for the hard work though!!! :D

  • Member

Right... first bug report from me :D

We have a slightly awkward setup as all our profiles are roaming... not sure if that causes the issues or not.

When I load the plugin (I have auto-scan plugins turned off, as it affects TurbulenceFD).

I try to add the plugin manually, and get the following errors:

Cannot Load external plug-in files <c:\program files\Newtek\LightWave11.5\support\......... 3dc_applink.py

PCore Console pops up with these:

Traceback (most recent call last):

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 640, in <module>

cfg = Config()

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 271, in __init__

self.load() # try to load/dump file config

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 361, in load

self.dump()

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 369, in dump

with open(self.cfgPath, 'w+') as f:

IOError: [Errno 2] No such file or directory: 'C:\\Users\\'MY NAME'\\Documents\\applinkLWCoat.cfg'

Traceback (most recent call last):

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 640, in <module>

cfg = Config()

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 271, in __init__

self.load() # try to load/dump file config

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 361, in load

self.dump()

File "C:\Program Files\NewTek\LightWave11.5\Support\Plugins\EXTRAS\3dc_applink_beta1\3dc_applink.py", line 369, in dump

with open(self.cfgPath, 'w+') as f:

IOError: [Errno 2] No such file or directory: 'C:\\Users\\'MY NAME'\\Documents\\applinkLWCoat.cfg'

Hope this error log thing helps solves the issues.

Will try running as admin and see if it fixes it at all?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...