bpy.ops.wm.link_append with link=False still links scenes *NEEDS RE-CHECK* #30172

Closed
opened 11 years ago by jdc15 · 9 comments
jdc15 commented 11 years ago

%%%When you append a scene using File->Append, with "Link" unchecked a scene will be imported properly as a new scene. However, attempting the same using the Python API, with bpy.ops.wm.link_append(..., link=False), the scene is still linked. It's as if the link=False is ignored. This only applies to scenes and not other objects/data.%%%

%%%When you append a scene using File->Append, with "Link" unchecked a scene will be imported properly as a new scene. However, attempting the same using the Python API, with bpy.ops.wm.link_append(..., link=False), the scene is still linked. It's as if the link=False is ignored. This only applies to scenes and not other objects/data.%%%
jdc15 commented 11 years ago
Poster

Changed status to: 'Open'

Changed status to: 'Open'
Owner

%%%Assigning bug to Campbell. It helps to attach a simple example script that shows the issue to bug reports like these. Also the exact blender version used should be mentioned.

There's is way to link/append without using an operator too:
http://www.blender.org/documentation/blender_python_api_2_61_4/bpy.types.BlendDataLibraries.html#bpy.types.BlendDataLibraries.load%%%

%%%Assigning bug to Campbell. It helps to attach a simple example script that shows the issue to bug reports like these. Also the exact blender version used should be mentioned. There's is way to link/append without using an operator too: http://www.blender.org/documentation/blender_python_api_2_61_4/bpy.types.BlendDataLibraries.html#bpy.types.BlendDataLibraries.load%%%
Owner

%%%Just made a small test with rev44097, and all seems to work nice. Can’t confirm that bug.%%%

%%%Just made a small test with rev44097, and all seems to work nice. Can’t confirm that bug.%%%
jdc15 commented 11 years ago
Poster

%%%Perhaps I'm using an older version (2.58-svn37702-1ubuntu1) and it's been fixed already. I will try a more recent build. Thanks!%%%

%%%Perhaps I'm using an older version (2.58-svn37702-1ubuntu1) and it's been fixed already. I will try a more recent build. Thanks!%%%
jdc15 commented 11 years ago
Poster

%%%Alright I tried it in Windows with version 2.61 and it worked fine. However on my Linux Mint computer I have 2.58 installed and the problem persists. I'm guessing that it's been fixed but maybe it's a Linux-only bug? I'm a bit of a Linux newbie and don't know want to mess with apt to get a more recent build but can anyone do a quick check on the latest version in Linux? Try something like "bpy.ops.wm.link_append(filepath="\home\smith\myfile.blend\Scene\Scene", directory="\home\smith\myfile.blend\Scene\", filename="Scene", link=False)" (with different file names of course) and check if there is an "L" next to the scene. Thanks for the help.%%%

%%%Alright I tried it in Windows with version 2.61 and it worked fine. However on my Linux Mint computer I have 2.58 installed and the problem persists. I'm guessing that it's been fixed but maybe it's a Linux-only bug? I'm a bit of a Linux newbie and don't know want to mess with apt to get a more recent build but can anyone do a quick check on the latest version in Linux? Try something like "bpy.ops.wm.link_append(filepath="\\home\\smith\\myfile.blend\\Scene\\Scene", directory="\\home\\smith\\myfile.blend\\Scene\\", filename="Scene", link=False)" (with different file names of course) and check if there is an "L" next to the scene. Thanks for the help.%%%
Owner

%%%That’s already what I did (I’m on Debian testing).

If you don’t want to update (why ? you have some graphical tools above apt, very easy to use, like synaptic…), you can download a Blender Linux release from http://www.blender.org/download/get-blender/ , just decompress the archive somewhere in your user directory, and it will work “out of the box”, without messing with the packages of your distribution.%%%

%%%That’s already what I did (I’m on Debian testing). If you don’t want to update (why ? you have some graphical tools above apt, very easy to use, like synaptic…), you can download a Blender Linux release from http://www.blender.org/download/get-blender/ , just decompress the archive somewhere in your user directory, and it will work “out of the box”, without messing with the packages of your distribution.%%%
Owner

%%%tried this and it works fine:

import bpy
bpy.ops.wm.link_append(filepath="/tmp/untitled.blend/Scene/Scene", directory="/tmp/untitled.blend/Scene/", filename="Scene", link=True)

please always use last stable release when reporting bugs.

closing.%%%

%%%tried this and it works fine: import bpy bpy.ops.wm.link_append(filepath="/tmp/untitled.blend/Scene/Scene", directory="/tmp/untitled.blend/Scene/", filename="Scene", link=True) please always use last stable release when reporting bugs. closing.%%%
Owner

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
ideasman42 closed this issue 11 years ago
jdc15 commented 11 years ago
Poster

%%%I apologize. I didn't know that you offered complete executables. Thanks for your time.%%%

%%%I apologize. I didn't know that you offered complete executables. Thanks for your time.%%%
Sign in to join this conversation.
No Label
good first issue
legacy module/Animation & Rigging
legacy module/Core
legacy module/Eevee & Viewport
legacy module/Grease Pencil
legacy module/Modeling
legacy module/Nodes & Physics
legacy module/Pipeline, Assets & IO
legacy module/Platforms, Builds, Tests & Devices
legacy module/Python API
legacy module/Rendering & Cycles
legacy module/Sculpt, Paint & Texture
legacy module/User Interface
legacy module/VFX & Video
legacy project/2.81
legacy project/2.82
legacy project/2.83
legacy project/2.90
legacy project/2.92
legacy project/2.93
legacy project/3.0
legacy project/3.1
legacy project/3.2
legacy project/3.4
legacy project/Add-ons (BF-Blender)
legacy project/Add-ons (Community)
legacy project/Alembic
legacy project/Animation & Rigging
legacy project/Asset Browser
legacy project/Automated Testing
legacy project/BF Blender: 2.8
legacy project/BF Blender: After Release
legacy project/BF Blender: Next
legacy project/BF Blender: Regressions
legacy project/BF Blender: Unconfirmed
legacy project/Blender 2.70
legacy project/Blender Cloud
legacy project/Code Quest
legacy project/Collada
legacy project/Compositing
legacy project/Core
legacy project/Cycles
legacy project/Datablocks and Libraries
legacy project/Dependency Graph
legacy project/Documentation
legacy project/EEVEE & Viewport
legacy project/Freestyle
legacy project/Game Data Conversion
legacy project/Game Engine
legacy project/Game Physics
legacy project/Game Python
legacy project/Game UI
legacy project/Geometry Nodes
legacy project/Good First Issue
legacy project/Grease Pencil
legacy project/Images & Movies
legacy project/Import/Export
legacy project/Infrastructure: Blender Buildbot
legacy project/Infrastructure: Blender Web Assets
legacy project/Infrastructure: Websites
legacy project/Modeling
legacy project/Modifiers
legacy project/Motion Tracking
legacy project/Nodes
legacy project/Nodes & Physics
legacy project/OpenGL Error
legacy project/Overrides
legacy project/Papercut
legacy project/Physics
legacy project/Pillar
legacy project/Pipeline, Assets & I/O
legacy project/Platform: Linux
legacy project/Platform: macOS
legacy project/Platforms, Builds, Tests & Devices
legacy project/Platform: Windows
legacy project/Python API
legacy project/Render & Cycles
legacy project/Render Pipeline
legacy project/Sculpt, Paint & Texture
legacy project/Straightforward Issue
legacy project/Text Editor
legacy project/Tracker Curfew
legacy project/Translations
legacy project/USD
legacy project/User Interface
legacy project/UV Editing
legacy project/VFX & Video
legacy project/Video Sequencer
legacy project/Virtual Reality
papercut
Priority › High
Priority › Low
Priority › Normal
Priority › Unbreak Now!
Status › Archived
Status › Confirmed
Status › Duplicate
Status › Needs Information from Developers
Status › Needs Information from User
Status › Needs Triage
Status › Resolved
straightforward issue
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#30172
Loading…
There is no content yet.