relative and absolute path issue #23726
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#23726
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
%%%Here is a video about the issue:
http://www.vimeo.com/14794857
The problem is that I can't change relative path into absolute path
using os.path.abspath(path) but if I change the filepath from
"//..\Desktop\' into '/..\Desktop\' then the command os.path.abspath(path)
works. Thanks.%%%
Changed status to: 'Open'
%%%the // prefix is a blender only convention
use: bpy.path.abspath()%%%
Changed status from 'Open' to: 'Archived'
%%%bpy.path.abspath() dosen't work. I would expect it will give something like c:\tmp\ for example. It dosen't change relative path into absolute. %%%
Added subscriber: @SebastianRothlisberger
Abspath is not working on own StringProperty:
I have a String Property as Filepath:
When i have relative Path in Preferences - File active, The Filebrowser opens with Relative Path checked.
This results in the StringProperty saved as:
Using Abspath on this gives either:
or:
removing the first / so the path looks like:
/../../../../Grafiken/Vorlagen/PhotogrammetrySamples/NEW_Munster/
gives this:
Added subscriber: @brecht
I don't see the bug? You probably want to do this:
bpy.path.abspath
will replace the//
Blender specific prefix, but it will not 'clean' the..
's from the path.Hmm, this works, thanks.
This then simply means i don't understand what i'm doing ;-) Thanks again brecht, have a nice evening.