Rigid-body-tool's constraint in animation doesn't listen to driver properly #36104

Closed
opened 2013-07-11 16:49:27 +02:00 by fr fff · 5 comments

Relates to: #36088

%%%--- Operating System, Graphics card ---
ubuntu 12.10, graphics unknown

- Blender version with error ---

2.67b (2.67.0 r57123) from blender.org (thank you!)
(it uses rigid body tools, I believe that is available from version 2.66 and upwards only )

- Short description of error ---

A rigid body constraint from the rigid body tools, type motor, has a driver on angular motor enable (use_motor_ang) button. It returns False, then True, then False depending on current frame. It isn't moving on first False which is correct, turns on True which is correct, but doesn't stop on second False.

- Steps for others to reproduce the error (preferably based on attached .blend file) ---

In the blend file, I did never add a driver in it, I didn't even play the animation without driver. I guess it can't be in cache this way? To recreate the error:

in the text panel, Press Ctrl-A, then Ctrl C to copy the text
in the python console panel press Ctrl P to paste and execute
in the physics tab of the properties panel, right click the angular motor enable button,
select add driver
in the f-curve/driver panel, click the pinkish Angular motor line
at the Drivers section right to it (scroll down maybe) click the Expr text field
instead of False enter driverFunc()
press enter
click UpdateDependencies button
in 3d view press Alt A to start the animation.

At frame 50 the motor starts to turn, at frame 100 it does NOT stop. In the operating system's console you can see that it is not enabled any more, so it should stop there. When you hover the enable button on the properties panel the enable state can also be seen live. Diplaying enable status is equal to the console, but the motor isn't acting accordingly.

%%%

**Relates to**: #36088 %%%--- Operating System, Graphics card --- ubuntu 12.10, graphics unknown - Blender version with error --- 2.67b (2.67.0 r57123) from blender.org (thank you!) (it uses rigid body tools, I believe that is available from version 2.66 and upwards only ) - Short description of error --- A rigid body constraint from the rigid body tools, type motor, has a driver on angular motor enable (use_motor_ang) button. It returns False, then True, then False depending on current frame. It isn't moving on first False which is correct, turns on True which is correct, but doesn't stop on second False. - Steps for others to reproduce the error (preferably based on attached .blend file) --- In the blend file, I did never add a driver in it, I didn't even play the animation without driver. I guess it can't be in cache this way? To recreate the error: in the text panel, Press Ctrl-A, then Ctrl C to copy the text in the python console panel press Ctrl P to paste and execute in the physics tab of the properties panel, right click the angular motor enable button, select add driver in the f-curve/driver panel, click the pinkish Angular motor line at the Drivers section right to it (scroll down maybe) click the Expr text field instead of False enter driverFunc() press enter click UpdateDependencies button in 3d view press Alt A to start the animation. At frame 50 the motor starts to turn, at frame 100 it does NOT stop. In the operating system's console you can see that it is not enabled any more, so it should stop there. When you hover the enable button on the properties panel the enable state can also be seen live. Diplaying enable status is equal to the console, but the motor isn't acting accordingly. %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%Actually the same driver for the motor's speed field right next to the enable button works like a charm. It actually takes 0 and 1 instead of True and False (automatically). Just found that out.
Cheers all!%%%

%%%Actually the same driver for the motor's speed field right next to the enable button works like a charm. It actually takes 0 and 1 instead of True and False (automatically). Just found that out. Cheers all!%%%
Author

%%%SORRY IT'S NOT A BUG!
My fault. Disabling the motor just does not stop the rigid body. I increased rotation damping, now the rotation stops slowly!

  • in blender:
  • Run the script, Update dependencies (of driver), Alt A
    file: rigidbodyconstraint driver enabled motor.blend see Attachmants tab ^
    Sorry and happy blending!%%%
%%%SORRY IT'S NOT A BUG! My fault. Disabling the motor just does not stop the rigid body. I increased rotation damping, now the rotation stops slowly! - in blender: - Run the script, Update dependencies (of driver), Alt A file: rigidbodyconstraint driver enabled motor.blend see Attachmants tab ^ Sorry and happy blending!%%%

%%%Ok that makes sense, thanks for the report anyways, closing.%%%

%%%Ok that makes sense, thanks for the report anyways, closing.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
2 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#36104
No description provided.