# Action constraint example file

**URL:** <https://blenderartists.org/t/action-constraint-example-file/304088>\
**Category:** Blender and CG Discussions\
**Created:** [March 21, 2003, 5:23am UTC](https://blenderartists.org/t/action-constraint-example-file/304088 "2003-03-21T05:23:45Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [March 21, 2003, 5:23am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/1 "2003-03-21T05:23:45Z")

</div>

[http://www.clubinfo.bdeb.qc.ca/~theeth/CtrlObject.zip](http://www.clubinfo.bdeb.qc.ca/~theeth/CtrlObject.zip)

That files contains some example regarding the Action constraint that was introduced in 2.25. That constraint enable the use of control object to playback Action blocks on selected Armature parts. Anyway, that might sound criptic, but the file is pretty self explanatory.

enjoy!

Martin

---

<div class="post-metadata">

**Author:** ![kos](https://blenderartists.org/user_avatar/blenderartists.org/kos/32/59_2.png) [@kos](https://blenderartists.org/u/kos)\
**Post date:** [March 21, 2003, 1:31pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/2 "2003-03-21T13:31:58Z")

</div>

you read my mind man…actually i was thinking of asking about it here.got it anyway.

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [March 21, 2003, 6:58pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/3 "2003-03-21T18:58:28Z")

</div>

> [@kos](#):
>
> you read my mind man…

yeah, that’s one of the super powers you get as an admin (well, that and the spandex suit, but I can’t wear THAT in public 😉 )

If you have any trouble understanding how it works, just ask. After showing it on IRC, it would seem that it’s a little less self explanatory than I thought.

Martin

---

<div class="post-metadata">

**Author:** ![mattebb](https://blenderartists.org/user_avatar/blenderartists.org/mattebb/32/457_2.png) [@mattebb](https://blenderartists.org/u/mattebb)\
**Post date:** [March 22, 2003, 3:53am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/4 "2003-03-22T03:53:52Z")

</div>

That’s very cool, theeth. I had no such powerful things were possible!

---

<div class="post-metadata">

**Author:** ![S68](https://blenderartists.org/user_avatar/blenderartists.org/s68/32/41_2.png) [@S68](https://blenderartists.org/u/S68)\
**Post date:** [March 22, 2003, 4:27am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/5 "2003-03-22T04:27:11Z")

</div>

Very nice,

and clear. One has always something new to learn 🙂

Stefano

---

<div class="post-metadata">

**Author:** ![S68](https://blenderartists.org/user_avatar/blenderartists.org/s68/32/41_2.png) [@S68](https://blenderartists.org/u/S68)\
**Post date:** [March 22, 2003, 4:47am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/6 "2003-03-22T04:47:43Z")

</div>

_BUG_

Nice demo, but buggy, IMHO (well, read on, it’s not the demo, it’s the Action Constrain implementation 🙂 ).

The muscle bulge example does not work correctly :o .

If you keep the arm straigh but move the IKA bone upwards, as if you were rising up the arm, the muscle bulges.

This is certainly due to the fact that the Action constrain is using the _absolute_ rotation of the forearm (Arm2) bone whereas, for a correct implementation, it should use th rotation _relative_ to the arm (Arm1) bone.

I think this might be considered a bug of the Action constrain implementation.

For the door the problem is less severe, because the controlling empty can stay completely separate; nevertheless if, on layer 1, you select ALL and you rotate all, the door opens, which might not be what you want. Same for iris.

In a muscle bulging stuff, the relativity of rotations is absolutely necessary otherwise you might get bulging muscles even if you only rotate the character :o , so I officially ask the coders to take this issue in consideration.

Seeya

Stefano

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [March 22, 2003, 5:32am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/7 "2003-03-22T05:32:08Z")

</div>

S68: arghh, I didn’t realise that… I’ll make a bug report on [blender.org](http://blender.org) as soon as I can. Same goes for the linked copies not deforming correctly bug (open the iris and render).

thanky

Martin

---

<div class="post-metadata">

**Author:** ![S68](https://blenderartists.org/user_avatar/blenderartists.org/s68/32/41_2.png) [@S68](https://blenderartists.org/u/S68)\
**Post date:** [March 24, 2003, 3:39am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/8 "2003-03-24T03:39:10Z")

</div>

Okie 🙂

Great demo, in any case, wonder why so few comments…

Stefano

---

<div class="post-metadata">

**Author:** ![Bischofftep](https://blenderartists.org/user_avatar/blenderartists.org/bischofftep/32/434_2.png) [@Bischofftep](https://blenderartists.org/u/Bischofftep)\
**Post date:** [March 24, 2003, 5:06am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/9 "2003-03-24T05:06:44Z")

</div>

Hm!

I’d been working on how to do a bulge for awhile, and having no luck. Thanks, theeth!!

The bugs are somewhat disconcerting, but the flexibility is impressive!

Nice work, and thanks for helping explain a mystifying part of Blender!

-Bischofftep

P.S. One reason why it might not have gotten much attention is that I’m not sure “elYsiun Chat” is the best place for it. It’s almost a mini-tutorial!

---

<div class="post-metadata">

**Author:** ![mattebb](https://blenderartists.org/user_avatar/blenderartists.org/mattebb/32/457_2.png) [@mattebb](https://blenderartists.org/u/mattebb)\
**Post date:** [April 6, 2003, 10:55pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/10 "2003-04-06T22:55:06Z")

</div>

Well, it looks like Alias|Wavefront has added a feature like this to Maya 5, and is marketing it as a major selling point to upgrade. Although the Maya version will probably be more powerful, it’s good to see Blender had it first!

---

<div class="post-metadata">

**Author:** ![kino](https://blenderartists.org/letter_avatar_proxy/v4/letter/k/65b543/32.png) [@kino](https://blenderartists.org/u/kino)\
**Post date:** [April 7, 2003, 4:36am UTC](https://blenderartists.org/t/action-constraint-example-file/304088/11 "2003-04-07T04:36:27Z")

</div>

WOW  
example 3 is just what we need 🙂

i found if you add a little bone the flession in the arm  
is more natural, but i’ve no experience with armature  
here is what i mean

[http://kino3d.com/images/ika.jpg](http://kino3d.com/images/ika.jpg)

i’m wrong ?

ciao

---

<div class="post-metadata">

**Author:** ![luckybreak](https://blenderartists.org/user_avatar/blenderartists.org/luckybreak/32/63_2.png) [@luckybreak](https://blenderartists.org/u/luckybreak)\
**Post date:** [April 7, 2003, 3:52pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/12 "2003-04-07T15:52:01Z")

</div>

Nice theeth, very clear.  
Sorry I’m not yet familiar with NLA/actions so when looking at the bulge armature (specificaly the _Constraint Action_ of the _Muscle_ bone) I couldn’d work out how to access the _ArmBulge_ action - I couldn’t see it referenced anywhere else (like in the action window).

Ah stupid me! you select the different actions in the Action window. well now at least you know something to add to the text if you want to “dumb it down”

---

<div class="post-metadata">

**Author:** ![guitargeek](https://blenderartists.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@guitargeek](https://blenderartists.org/u/guitargeek)\
**Post date:** [April 25, 2003, 2:15pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/13 "2003-04-25T14:15:45Z")

</div>

I am trying to make an action constraint based on your file.

I added my armature  
went into posemode  
added keys for 2 frames (1 an 10)  
clicked bake.

I set the bone to the baked action  
90 degree max  
0 min  
start 1  
end 10  
OB Empty

When I go to rotate my controler empty, I rotate about 100 deg and it jumps to frame 10 of my action then as I continue to rotate, it jumps to frame 1 again. I’m somewhat new to actions, so I am probably doing something wrong. plz help!

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [April 26, 2003, 12:14pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/14 "2003-04-26T12:14:54Z")

</div>

I don’t think I can help you just like this, but if you e-mail me your .blend file, I’ll do my best to solve it.

Martin

---

<div class="post-metadata">

**Author:** ![guitargeek](https://blenderartists.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@guitargeek](https://blenderartists.org/u/guitargeek)\
**Post date:** [April 26, 2003, 2:11pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/15 "2003-04-26T14:11:48Z")

</div>

Sorry, I ended up figuring it out. I was rotating clockwise assuming that was positive rotation when it was actually negative. When I rotated in the other direction, it seems to work ok. I do have another question though. Say I have a large armature, 20 bones+, that are constrained to an action, is there a way to constrain one bone to the action then copy that contraint to the rest without going to each bone and adding a constraint?

I’m just lazy, thats all

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [April 26, 2003, 6:37pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/16 "2003-04-26T18:37:33Z")

</div>

sadly, I don’t think there’s a way to do that right now.

Martin

---

<div class="post-metadata">

**Author:** ![guitargeek](https://blenderartists.org/letter_avatar_proxy/v4/letter/g/a9adbd/32.png) [@guitargeek](https://blenderartists.org/u/guitargeek)\
**Post date:** [April 27, 2003, 2:08pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/17 "2003-04-27T14:08:23Z")

</div>

Thats ok, I was trying your rigging technique on a hand model and after 5 or 6 bones thought there might be somehting that could save me a little time. I haven’t gotten much into python, do you think there would be a way to write a script that would copy one bone’s constrains to the rest of the bones in the armature?

---

<div class="post-metadata">

**Author:** ![theeth](https://blenderartists.org/user_avatar/blenderartists.org/theeth/32/9_2.png) [@theeth](https://blenderartists.org/u/theeth)\
**Post date:** [April 27, 2003, 5:00pm UTC](https://blenderartists.org/t/action-constraint-example-file/304088/18 "2003-04-27T17:00:02Z")

</div>

no armature access in Python yet.

Martin
