Jump to content
3DCoat Forums
haikalle

Blender Applink

Recommended Posts

4 hours ago, The Candy-floss Kid said:

@Archnila

3D-Coat itself creates an Applinks Folder, inside this folder is a folder called ’Exchange’ it is this that you will set in the 3DApplink within Blender for your exchange address.

Here’s what I’d try - delete your Applinks folder (Created by 3D-Coat)  and your 3DC2Blender Folder (Created by The 3D-Coat Applink) .
Restart your computer. Open 3D-Coat and let it create a new Applink Folder. Close 3D-Coat.
Open Blender and make sure that the ‘Exchange’ folder within the Applinks folder (created by 3D-Coat) is the chosen Exchange address - navigate to the Exchange folder within the Applinks folder and set this in as the address >  Apply this Exchange Folder Address.

Press Send in the 3D-Coat Applink > now open 3D-Coat - if it does not first connect > Blender >Press Send (again).

Hopefully that will work particularly if it was working for you before with no issue.
I’ve noted that on occasion that the 3DCoat Applink drops it’s Exchange Folder address when you reopen Blender.

p.s I'd also check that you haven't double installed another Applink version i.e the one pre-installed in your default Blender addons with one installed over it from outwith Blender - found in Blender Preferences. In short check for duplicates.

On the Mac that is Users/username/Library/Application Support/Blender(version number)/scripts/addons

 

Ah I’ll try that! I’ve also noticed that I sometimes have to reset the folder every time I create a new Blender project. Thanks! 

Share this post


Link to post
Share on other sites

@haikalle

I like to test your offered versions, then one request,, please change version even though it is beta,, so I can confirm which version currently using  even htough I forget  it ^^; 

 

Share this post


Link to post
Share on other sites

Test  io_coat3D_new.zip included one.  with 2.92 git build windows.

I simply copy the io_coat add on directory then paste again in deafult aprication add on directory for windows. and up-date script + once de-activate then activate add on and confrim.

I only export cube to 3d coat, then paint, and use open in original app, then export textures . 

I still see same new erroer as same as some recent versions. 

Error: Python: Traceback (most recent call last):
  File "C:\myprograms\blender-git\build_windows_Release_x64_vc16_Release\bin\Release\2.92\scripts\addons\io_coat3D\__init__.py", line 245, in invoke
    workflow1(ExportFolder)
  File "C:\myprograms\blender-git\build_windows_Release_x64_vc16_Release\bin\Release\2.92\scripts\addons\io_coat3D\__init__.py", line 1286, in workflow1
    blender_3DC_blender(texturelist, new_applink_address)
  File "C:\myprograms\blender-git\build_windows_Release_x64_vc16_Release\bin\Release\2.92\scripts\addons\io_coat3D\__init__.py", line 1062, in blender_3DC_blender
    tex.matlab(objekti,mat_list,texturelist, is_new)
  File "C:\myprograms\blender-git\build_windows_Release_x64_vc16_Release\bin\Release\2.92\scripts\addons\io_coat3D\tex.py", line 678, in matlab
    readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_indexs)
  File "C:\myprograms\blender-git\build_windows_Release_x64_vc16_Release\bin\Release\2.92\scripts\addons\io_coat3D\tex.py", line 194, in readtexturefolder
    if (os.path.isfile(texture_list[3])):
NameError: name 'texture_list' is not defined

location: <unknown location>:-1

Share this post


Link to post
Share on other sites

tried latest version got this:

 

bpy.data.window_managers["WinMan"].addon_search = "3d"
Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\scripts\modules\addon_utils.py", line 352, in enable
    mod.__time__ = os.path.getmtime(mod.__file__)
  File "C:\Program Files\Blender Foundation\Blender 2.90\2.90\python\lib\genericpath.py", line 55, in getmtime
    return os.stat(filename).st_mtime
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Program Files\\Blender Foundation\\Blender 2.90\\2.90\\scripts\\addons\\io_coat3D\\__init__.py'

bpy.context.area.ui_type = 'INFO'
 

Share this post


Link to post
Share on other sites
Quote

@haikalle

Error on send:

Traceback (most recent call last):
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 501, in invoke
    bpy.ops.export_applink.pilgway_3d_coat()
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/modules/bpy/ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: Traceback (most recent call last):
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 511, in execute
    foundExchangeFolder, global_exchange_folder = folders.InitFolders()
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/folders.py", line 33, in InitFolders
    os.makedirs(os.path.dirname(exchangeFile))
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/python/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/Users/usernamer/Documents/3DC2Blender'

location: /Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/modules/bpy/ops.py:201

 

location: <unknown location>:-1

 

 

Share this post


Link to post
Share on other sites

wou...so many different bugs. and this is what I get with basic cube :)

 

Now I watched my own video it didn't show but in my ends all works ok...weard

Edited by haikalle

Share this post


Link to post
Share on other sites
13 minutes ago, haikalle said:

@The Candy-floss Kid

Lets take your issue first :)

Could you try this version

io_coat3D_new2.zip

Please remove 3DC2Blender folder before using this new version.

looks like its working again!

only thing is from 3d coat to blender when i chose export voxel mesh to blender, I remember it was automatic before (not a big deal tho just have to click get back in blender to have my mesh again), also the mesh i get back has a 0.01 scale, again no big deal just need to clear scale and it works just fine.

big thanks for the quick fix!!!!!

Share this post


Link to post
Share on other sites

@haikalle

Closed Blender reopened.

Repeat test send to 3DCoat good.

Texture and Mesh export good.

Get back error message as follows

 

Traceback (most recent call last):
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 245, in invoke
    workflow1(ExportFolder)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 1286, in workflow1
    blender_3DC_blender(texturelist, new_applink_address)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 1051, in blender_3DC_blender
    tex.matlab(objekti,mat_list,texturelist,is_new)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 678, in matlab
    readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_indexs)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 246, in readtexturefolder
    createnodes(index_mat, texcoat, create_group_node, objekti, ind, is_new, udim_textures, udim_len)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 398, in createnodes
    with open(json_address, encoding='utf-8') as data_file:
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Blender 2.83.6.app/Contents/MacOS/2.83/scripts/addons/io_coat3D/data.json'

location: <unknown location>:-1

 

Share this post


Link to post
Share on other sites

@haikalle

error is

'/Applications/Blender 2.83.6.app/Contents/MacOS/2.83/scripts/addons/io_coat3D/data.json'

No such file or directory: '/Applications/Blender 2.83.6.app/Contents/MacOS/2.83/scripts/addons/io_coat3D/data.json' 

Should be

'/Applications/Blender 2.83.6.app//Contents/Resources/2.83/scripts/addons/io_coat3D/data.json'

Share this post


Link to post
Share on other sites

@haikalle

errors seem the same

Traceback (most recent call last):
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 245, in invoke
    workflow1(ExportFolder)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 1286, in workflow1
    blender_3DC_blender(texturelist, new_applink_address)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/__init__.py", line 1051, in blender_3DC_blender
    tex.matlab(objekti,mat_list,texturelist,is_new)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 685, in matlab
    readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_indexs)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 246, in readtexturefolder
    createnodes(index_mat, texcoat, create_group_node, objekti, ind, is_new, udim_textures, udim_len)
  File "/Applications/Blender 2.83.6.app/Contents/Resources/2.83/scripts/addons/io_coat3D/tex.py", line 405, in createnodes
    with open(json_address, encoding='utf-8') as data_file:
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Blender 2.83.6.app/Contents/MacOS/2.83/scripts/addons/io_coat3D/data.json'

location: <unknown location>:-1

Should be

'/Applications/Blender 2.83.6.app//Contents/Resources/2.83/scripts/addons/io_coat3D/data.json'

Share this post


Link to post
Share on other sites

Nice see that picture.. Please let me know if there is some other issue and I try to fix them too. Good to know that this finally works in macs too :)

Share this post


Link to post
Share on other sites
16 hours ago, The Candy-floss Kid said:

@Archnila

3D-Coat itself creates an Applinks Folder, inside this folder is a folder called ’Exchange’ it is this that you will set in the 3DApplink within Blender for your exchange address.

Here’s what I’d try - delete your Applinks folder (Created by 3D-Coat)  and your 3DC2Blender Folder (Created by The 3D-Coat Applink) .
Restart your computer. Open 3D-Coat and let it create a new Applink Folder. Close 3D-Coat.
Open Blender and make sure that the ‘Exchange’ folder within the Applinks folder (created by 3D-Coat) is the chosen Exchange address - navigate to the Exchange folder within the Applinks folder and set this in as the address >  Apply this Exchange Folder Address.

Press Send in the 3D-Coat Applink > now open 3D-Coat - if it does not first connect > Blender >Press Send (again).

Hopefully that will work particularly if it was working for you before with no issue.
I’ve noted that on occasion that the 3DCoat Applink drops it’s Exchange Folder address when you reopen Blender.

p.s I'd also check that you haven't double installed another Applink version i.e the one pre-installed in your default Blender addons with one installed over it from outwith Blender - found in Blender Preferences. In short check for duplicates.

On the Mac that is Users/username/Library/Application Support/Blender(version number)/scripts/addons

 

Ok I tried using the zip version of the addon, tried it with a new scene and default cube, works fine, but for some reason, it doesn't want to work with the scene I'm working on. Maybe I'll bring the objects into a new project.Update : It works now, for some reason, I think something must have happened with the old file, but anyhow, creating a new blend file solved the problem; I also noticed that I would have to reset the location of the exchange folder every time I create a new project. 

Edited by Archnila

Share this post


Link to post
Share on other sites

still have to hit getback in blender and scale i have the same issue. Just need to do alt+s in blender to clear  the scale and its working, otherwise works fine on 2.9 thanks again!

Share this post


Link to post
Share on other sites

Ok so far so good, the addon works, but just a quick question, for some reason when I send my mesh to 3dcoat for painting, and do the usual steps; finish painting the model, export geo and textures from 3dcoat to get the model back via the export to Blender function in 3dcoat to get the applink setup, and if I wanted to make changes, go back to 3dcoat to do so and with the export geo box unchecked, and the export texture box checked. It somehow creates a new mesh in Blender, which shouldn't be the case according to the official 3dcoat youtube tutorial. Only the textures should be updated. 

Share this post


Link to post
Share on other sites

Are you using "Open in original App" option. That option only updates the mesh you have brought from blender. If you use Export to -> Blender option, that will always creates new mesh.

  • Thanks 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×