Blender 2.8 - Python error from connect rigid body feature #61598

Closed
opened 2019-02-16 06:38:13 +01:00 by DiscreteChi · 14 comments

Operating system: Windows 10
Graphics card: rtx 2070
Broken: blender-2.80-90f6fd0a3651-win64

Using rigid body connect feature gives python error:

Traceback (most recent call last):

File "C:\Users\chris\Downloads\blender-2.80.0 - 15-02-19\2.80\scripts\startup\bl_operators\rigidbody.py", line 307, in execute
  self._add_constraint(context, obj_act, obj)
File "C:\Users\chris\Downloads\blender-2.80.0 - 15-02-19\2.80\scripts\startup\bl_operators\rigidbody.py", line 267, in _add_constraint
  context.scene.objects.link(ob)

AttributeError: 'bpy_prop_collection' object has no attribute 'link'

location: :-1

Reproduction

  1. Create new scene
  2. Add two cubes and select them
  3. Click Object->Rigid Body->Connect
Operating system: Windows 10 Graphics card: rtx 2070 Broken: blender-2.80-90f6fd0a3651-win64 Using rigid body connect feature gives python error: Traceback (most recent call last): ``` File "C:\Users\chris\Downloads\blender-2.80.0 - 15-02-19\2.80\scripts\startup\bl_operators\rigidbody.py", line 307, in execute self._add_constraint(context, obj_act, obj) File "C:\Users\chris\Downloads\blender-2.80.0 - 15-02-19\2.80\scripts\startup\bl_operators\rigidbody.py", line 267, in _add_constraint context.scene.objects.link(ob) ``` AttributeError: 'bpy_prop_collection' object has no attribute 'link' location: <unknown location>:-1 Reproduction 1) Create new scene 2) Add two cubes and select them 3) Click Object->Rigid Body->Connect
Author

Added subscriber: @DiscreteChi

Added subscriber: @DiscreteChi

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Campbell Barton was assigned by Sebastian Parborg 2019-02-16 11:31:04 +01:00

Seems like the link attribute is indeed missing if you access the object through: context.scene.objects
However it is there if you go through collection.objects. If this was an intended change some of the default script files needs to be updated besides the rigidbody one.

Seems like the link attribute is indeed missing if you access the object through: `context.scene.objects` However it is there if you go through `collection.objects`. If this was an intended change some of the default script files needs to be updated besides the rigidbody one.

Added subscriber: @gabe2252

Added subscriber: @gabe2252

Added subscriber: @dadou99

Added subscriber: @dadou99

In blender 2.8 you need to create an empty (type arrow) between 2 rigid body, because this empty will be the link ( the constraint) between this 2 rigid body. after select the empty and go to physic tab and select "rigid body constraint" ! Then select object one and two !

In blender 2.8 you need to create an empty (type arrow) between 2 rigid body, because this empty will be the link ( the constraint) between this 2 rigid body. after select the empty and go to physic tab and select "rigid body constraint" ! Then select object one and two !

Added subscriber: @DrSpock

Added subscriber: @DrSpock

How can you chain objects if you need to select first and second object?

How can you chain objects if you need to select first and second object?

Added subscriber: @Archimondro

Added subscriber: @Archimondro

I really hope that this will be fixed at some point, or how else would one try to connect 75 Rigid Body Tank track links?

I really hope that this will be fixed at some point, or how else would one try to connect 75 Rigid Body Tank track links?

@Archimondro I agree, I had to go back to V2.79 because I could not complete the task I needed to do. I was doing rope simulation and need rigid body for that and need to chain them. At the moment that is impossible in V2.80 beta, unless I work a few hours on it instead of a few minute.

@Archimondro I agree, I had to go back to V2.79 because I could not complete the task I needed to do. I was doing rope simulation and need rigid body for that and need to chain them. At the moment that is impossible in V2.80 beta, unless I work a few hours on it instead of a few minute.

For rope simulation go to my youtube chanel : nadagalou
I have made lot of tutorial to create physic rope. But it's true for 75 ridgid body tank track it's very difficult in 2.8.

For rope simulation go to my youtube chanel : nadagalou I have made lot of tutorial to create physic rope. But it's true for 75 ridgid body tank track it's very difficult in 2.8. ```

This issue was referenced by 0a2e59a726

This issue was referenced by 0a2e59a7269c573113449654c61bdf6656a3c430
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
8 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#61598
No description provided.