Advanced Member popwfx Posted April 11, 2013 Advanced Member Share Posted April 11, 2013 New plugin version 2.0 has arrived. ... 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. I was having a hard time understanding how or why the applink is useful, as I thought I could just manually import stuff and UV map it or whatever, but after seeing your GUI here, it has become clearer how handy this could be! I have an idea to help you with the Nodes. While I haven't developed any nodes based plugins before and didn't come across that limitation yet, I have pushed LScript beyond its limits by thinking outside the box, There have been things I couldn't access from LScript that I got access to by reading and writing files. Getting info from the LW config text files or reading binary information from Wav files is easy enough if you know the file format. You might be able to get/set the info you want from/into the nodes if you read the binary LWO file. I believe that format is available, and Andrew even is reading that info for his import, So you might be able to do it "the hard way" if you write out a new LWO with new node info - though that would take a bit of testing to be sure you don't corrupt the object. But if you really want to do it, that may be the only way until they improve the sdk and Lscript/python... Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89851 Share on other sites More sharing options...
Styler Posted April 11, 2013 Share Posted April 11, 2013 photonvfx Yes, this exactly what I'm going to do. And the thing is - there is no public information about new file format. Even in sdk 11.5 they provide description only for LWO2, which is pretty old. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89852 Share on other sites More sharing options...
Member lardbros Posted April 12, 2013 Member Share Posted April 12, 2013 Yeah, it seems like LW doesn't perform "write to file" operation under your current account. Try with admin rights. Hmmmmm... The first thing I did was try with administration rights, and still no luck! What could I try next? Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89877 Share on other sites More sharing options...
Styler Posted April 12, 2013 Share Posted April 12, 2013 (edited) lardbros - what operating system do you use? - Is your 'MY NAME' written in English? Edited April 12, 2013 by Styler Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89881 Share on other sites More sharing options...
Member lardbros Posted April 12, 2013 Member Share Posted April 12, 2013 Hey Styler, We're using Win 7 Enterprise, 64-bit The name bit is in fact just 'myname' in English. I removed my actual name just in case it gets spread around on Google or something. I've managed to get the app working by manually creating a 'Documents' folder in my user folder... your app then successfully writes all the config files. Now I've got another problem... Sorry! Our Windows machines are heavily locked down, so not sure where this is going wrong unfortunately. Basically when I create a default sphere in Layout, then choose the 'Per-Pixel-Painting' 3d-Coat doesn't run, and if it's already running it doesn't recognise that there is anything to import or anything. The scene and object files are written to the content directory, and the import text file is written, but clearly the 'watching' or whatever 3dCoat is doing is being blocked or something. Is it possible to let us choose where the config paths are, instead of it all being hardcoded in? Thanks! I do like the self-explanatory layout and simple interface... very nice UI! Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89889 Share on other sites More sharing options...
Styler Posted April 12, 2013 Share Posted April 12, 2013 lardbros Is it possible to let us choose where the config paths are, instead of it all being hardcoded in? Applink creates all path relative to machine specifications (OS, UserDir and etc). You can check your paths in PCore console by pressing [>>] button on Options tab. By default Windows has Documents folder, may be your machine has custom rig. Anyway, thank you. This will be fixed in next version. Basically when I create a default sphere in Layout, then choose the 'Per-Pixel-Painting' 3d-Coat doesn't run, and if it's already running it doesn't recognise that there is anything to import or anything. The scene and object files are written to the content directory, and the import text file is written, but clearly the 'watching' or whatever 3dCoat is doing is being blocked or something. please, check what version you use and 'Use 3D-Coat version' on 'Options' tab. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89892 Share on other sites More sharing options...
Member lardbros Posted April 12, 2013 Member Share Posted April 12, 2013 Hi again, It wouldn't surprise me if our profiles and things are non-standard to be honest... but atleast that bit is kind of sorted! Would be cool to choose where it sets these folders up though if you wouldn't mind adding that. (I realise it adds more functionality, and more options to a user that could potentially do something wrong, but it would help us greatly.) I checked the version in the options tab, and tried v3 and v4, but neither seem to work. I am right in presuming that as soon as I click 'per-pixel painting' it should load up 3dCoat, and import the object automatically? Or if 3dCoat is already open, I would move over to 3dCoat and it would ask if I wanted to import it? What sort of data stream does 3dCoat use to 'pick-up' the import call from LightWave? Maybe this is something that needs unblocking from the firewall? Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89893 Share on other sites More sharing options...
Styler Posted April 12, 2013 Share Posted April 12, 2013 Yeah, I'll extend plugin in future: extra settings and other stuff. I didn't implement "run 3D-Coat on export button" because from python it's hard to control "is application executed already? Next beta version will contain maximum of debugging info to detect potential errors. What might go wrong on your machine? applink works with existing LWO file. If you create just a geometry in layout without saving - this may be an issue Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89894 Share on other sites More sharing options...
philnolan3d Posted April 12, 2013 Share Posted April 12, 2013 Applink creates all path relative to machine specifications (OS, UserDir and etc). You can check your paths in PCore console by pressing [>>] button on Options tab Just a note, while I was testing I pressed the >> button and nothing happened. This is in LW 11.5 x64. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89904 Share on other sites More sharing options...
Member lardbros Posted April 14, 2013 Member Share Posted April 14, 2013 Hey Phil! You have to have the Python console open to see the output from any button press in the plug in. If you go to utilities then under the python heading I think you can load the console from there Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89937 Share on other sites More sharing options...
philnolan3d Posted April 14, 2013 Share Posted April 14, 2013 I didn't even know there was a Python console. Thanks. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89939 Share on other sites More sharing options...
Member lardbros Posted April 14, 2013 Member Share Posted April 14, 2013 Hmmm... just been trying this at home, and it all works fine! Must be some lockdowns on the OS at work. Does anyone here know how 3d coat communicates or 'watches' the folders for importing automatically? I can ask for this to be unblocked if it's a firewall issue Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89941 Share on other sites More sharing options...
Styler Posted April 14, 2013 Share Posted April 14, 2013 (edited) LW applink makes i/o operation with files in next folders: C:/Users/xxx/Documents/ C:/Users/xxx/Documents/3D-CoatVX/Exchange/ C:/Users/xxx/Documents/3D-CoatVX/Exchange/LightWave/ ../ProjectName/Objects/ - in project folder If you have custom OS setting or restricted permit for write/read this might cause error. I'll submit new version in Monday, with full debugging info in cases like that.. Edited April 14, 2013 by Styler Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89947 Share on other sites More sharing options...
philnolan3d Posted April 14, 2013 Share Posted April 14, 2013 Here's a question. Does it actually look at C:/Users/xxx/Documents/ or does it look at the My Documents link? Somehow my "library" links like My Documents, My Pictures, etc., got corrupted and I just get an error when I try to open them, however if I manually go in via C:/Users it work fine. This has caused issues with a number of programs like Win Media Player. I sent a model to 3DC from LW, worked on the UV, painted a little, and sent it back to LW. In LW I didn't get any textures loaded at all, but the new UV info was there so I know the model was updated. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89967 Share on other sites More sharing options...
Styler Posted April 15, 2013 Share Posted April 15, 2013 Does it actually look at C:/Users/xxx/Documents/ or does it look at the My Documents link? Applink looks at 'My Documents' folder, and gets all paths by using system calls. If your change 'My Documents' path, it will be taken correctly. I sent a model to 3DC from LW, worked on the UV, painted a little, and sent it back to LW. In LW I didn't get any textures loaded at all, but the new UV info was there so I know the model was updated. In general, if you have any textures they have to be there. I use the same LWO object for i/o operations. This guaranties me that all textures will be in '/Project/Objects' folder and texture paths will be relative to LWO file. Quote Link to comment https://3dcoat.com/forum/index.php?/topic/18506-lightwave-10-applink/page/3/#findComment-89970 Share on other sites More sharing options...
Recommended Posts
Posted by Styler,
1 reaction
Go to this post
Posted by erikals,
2 reactions
Go to this post
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.