Node wrangler principled texture setup fails if textures are on a different drive than the project #84051

Closed
opened 2020-12-22 15:37:11 +01:00 by Jackie Satyawan · 2 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30

Blender Version
Broken: version:

  • 2.92.0, hash: blender/blender@0e85d701c6
  • 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: blender/blender@0f45cab862
    Worked: ?

Addon Information
Name: Node Wrangler (3, 37)
Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer

Short description of error
When using bpy.ops.node.nw_add_textures_for_principled {key Ctrl Shift T} to setup textures for the Principled BSDF and the texture files are located on a different drive than the project file, it fails with an exception when clicking Principled Texture Setup in the file browser. This happens when relative paths are used.

Exact steps for others to reproduce the error

  • Enabled the Node Wrangler add-on
  • Save the project on a drive different then were the textures are located
  • Switch to the Shading workspace and in the node editor use {key Ctrl Shift T}
  • Select the texture files on the different drive
Python: Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\addons\node_wrangler.py", line 3022, in execute
import_path = bpy.path.relpath(self.directory)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\path.py", line 114, in relpath
return "//" + _os.path.relpath(path, start)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\ntpath.py", line 562, in relpath
path_drive, start_drive))

ValueError: path is on mount 'D:', start on mount 'F:'

location: <unknown location>:-1
**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 457.30 **Blender Version** Broken: version: - 2.92.0, hash: `blender/blender@0e85d701c6` - 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `blender/blender@0f45cab862` Worked: ? **Addon Information** Name: Node Wrangler (3, 37) Author: Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer **Short description of error** When using `bpy.ops.node.nw_add_textures_for_principled` {key Ctrl Shift T} to setup textures for the Principled BSDF and the texture files are located on a different drive than the project file, it fails with an exception when clicking *Principled Texture Setup* in the file browser. This happens when relative paths are used. **Exact steps for others to reproduce the error** - Enabled the Node Wrangler add-on - Save the project on a drive different then were the textures are located - Switch to the *Shading* workspace and in the node editor use {key Ctrl Shift T} - Select the texture files on the different drive ```lines Python: Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\addons\node_wrangler.py", line 3022, in execute import_path = bpy.path.relpath(self.directory) File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\path.py", line 114, in relpath return "//" + _os.path.relpath(path, start) File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\lib\ntpath.py", line 562, in relpath path_drive, start_drive)) ``` ValueError: path is on mount 'D:', start on mount 'F:' location: <unknown location>:-1 ```

Added subscriber: @Jackie-1

Added subscriber: @Jackie-1
Robert Guetzkow changed title from node wrangler to Node wrangler principled texture setup fails if textures are on a different drive than the project 2020-12-22 15:51:02 +01:00

Closed as duplicate of #77022

Closed as duplicate of #77022
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#84051
No description provided.