Cannot link object via bpy.context.collection.objects.link() after manual Delete operator invocation (*) #55778

Closed
opened 2018-07-05 18:31:33 +02:00 by Andrey B · 5 comments

blender-2.80.0-git.53c63db-windows64 (and earlier, but not in 2.79)

Steps:

  1. Copy script
  2. Paste it to python console
  3. Invoke Delete operator MANUALLY via X key and Check Delete globally (this is important, click it by mouse)
    delete_op.PNG
  4. Paste script again.

After that:
A) Sometimes C.collection.objects.items() may crash.


B) C.collection.objects- [ ] become invisible. It is in a Master collection, BUT not selectable: C.collection.objects['o'].select_set('SELECT') failing.

select_set.PNG

o = D.objects.new('o', D.armatures.new('a'))
C.collection.objects.link(o)
bpy.ops.object.select_all(action='SELECT')
C.collection.objects['o'].select_set('SELECT')
`blender-2.80.0-git.53c63db-windows64` (and earlier, but not in 2.79) Steps: 1. Copy script 2. Paste it to python console 3. **Invoke Delete operator MANUALLY** via **X key** and **Check Delete globally** (this is **important**, click it by mouse) ![delete_op.PNG](https://archive.blender.org/developer/F3876515/delete_op.PNG) 4. **Paste script again.** After that: A) Sometimes `C.collection.objects.items()` may crash. ``` ``` B) `C.collection.objects- [ ]` become invisible. It is in a *Master collection*, BUT not selectable: `C.collection.objects['o'].select_set('SELECT')` failing. ![select_set.PNG](https://archive.blender.org/developer/F3876691/select_set.PNG) ```lang=python o = D.objects.new('o', D.armatures.new('a')) C.collection.objects.link(o) bpy.ops.object.select_all(action='SELECT') C.collection.objects['o'].select_set('SELECT') ```
Author

Added subscriber: @befzz

Added subscriber: @befzz

Added subscribers: @brecht, @mont29

Added subscribers: @brecht, @mont29
Brecht Van Lommel was assigned by Bastien Montagne 2018-07-24 15:32:20 +02:00

@brecht maybe you want to check on that one? Thanks.

@brecht maybe you want to check on that one? Thanks.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This appears to be fixed.

This appears to be fixed.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#55778
No description provided.