Difficult to play an animation with a proxy #31306

Closed
opened 2012-05-05 04:34:03 +02:00 by Alex Fraser · 11 comments
Member

Category: Animation

%%%I have a rigged character in one file. I link it as a group to another, add a proxy for the armature, and animate it. How should I get the action to play in the bge?

My first attempt was to add an action actuator to the proxy object, but it doesn't do anything. That's what this bug report is about: should it do something?

In the end, I have decided to go with dfelinto's method: have the action actuator on the original armature object in the library, and set which action to play with a message. Both techniques are illustrated in the attached files:

  • character.blend is the library file, containing the mesh and armature. There are two groups: G_ok and G_bug; G_bug has no logic attached to it, while G_ok uses a message sensor and a short script to play the action.
  • game.blend uses the library file, pulling in G_ok and G_bug as groups. A proxy armature is made for each group; these share an action, "proxyAction". Both objects animate in the 3D view, but only G_ok works in the game engine.

Actually, I think using the set-up in G_ok is the only way that makes sense: having logic bricks on the proxy object would be weird, because it's not clear what role it plays in the scene. Is it even converted? However, maybe there should be an easier way to do this that doesn't involve any Python.

Tested in Blender 2.63.2, r46163.%%%

**Category**: Animation %%%I have a rigged character in one file. I link it as a group to another, add a proxy for the armature, and animate it. How should I get the action to play in the bge? My first attempt was to add an action actuator to the proxy object, but it doesn't do anything. That's what this bug report is about: should it do something? In the end, I have decided to go with dfelinto's method: have the action actuator on the original armature object in the library, and set which action to play with a message. Both techniques are illustrated in the attached files: - character.blend is the library file, containing the mesh and armature. There are two groups: G_ok and G_bug; G_bug has no logic attached to it, while G_ok uses a message sensor and a short script to play the action. - game.blend uses the library file, pulling in G_ok and G_bug as groups. A proxy armature is made for each group; these share an action, "proxyAction". Both objects animate in the 3D view, but only G_ok works in the game engine. Actually, I think using the set-up in G_ok is the only way that makes sense: having logic bricks on the proxy object would be weird, because it's not clear what role it plays in the scene. Is it even converted? However, maybe there should be an easier way to do this that doesn't involve any Python. Tested in Blender 2.63.2, r46163.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

#38874 was marked as duplicate of this issue

#38874 was marked as duplicate of this issue

%%%The BGE is using the mesh's parent (the original armature from the group) instead of the proxy object, which is why logic on the proxy does nothing.%%%

%%%The BGE is using the mesh's parent (the original armature from the group) instead of the proxy object, which is why logic on the proxy does nothing.%%%
Author
Member

%%%Yeah... Really, I think that's the way I'd want it to be.

How about we disable the game logic buttons for proxy objects? That way it would at least be clear that you're meant to do it another way. To address the issue with having to use Python, perhaps we could add a toggle to the Action actuator that would let it fetch the action name from a property. Hmm.. actually, is there currently any way to store a message body as a property with logic bricks?%%%

%%%Yeah... Really, I think that's the way I'd want it to be. How about we disable the game logic buttons for proxy objects? That way it would at least be clear that you're meant to do it another way. To address the issue with having to use Python, perhaps we could add a toggle to the Action actuator that would let it fetch the action name from a property. Hmm.. actually, is there currently any way to store a message body as a property with logic bricks?%%%

Added subscribers: @MartinLindelof, @JoshuaLeung, @Sergey

Added subscribers: @MartinLindelof, @JoshuaLeung, @Sergey

◀ Merged tasks: #38874.

◀ Merged tasks: #38874.

Added subscriber: @panzergame

Added subscriber: @panzergame

@Moguri : This can be closed, since a proxy has no transform relation with its items ?

@Moguri : This can be closed, since a proxy has no transform relation with its items ?
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

This task is being closed because the BGE has been removed in Blender 2.8.

This task is being closed because the BGE has been removed in Blender 2.8.
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
6 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#31306
No description provided.