Page MenuHome

Blender 2.8 - Python error from connect rigid body feature
Closed, ResolvedPublic

Description

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

Event Timeline

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.

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.

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 !

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

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?

@Andrea Müller (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.