x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Set bone rotation?

Hi all,

First of all, thank you Epic for this suprise! A nice Spring 1st day!

I have a question about skeletalmeshes. Is it possible to set a particular bone's rotation and location by using blueprint? I m trying to implement a genetic algortihm based procedural animation system. So the first step is a precise manipulation of the skeleton. ;)

Thanks to all.

Product Version: Not Selected
Tags:
more ▼

asked Mar 20 '14 at 04:31 PM in Blueprint Scripting

avatar image

Patecaky
26 1 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

5 answers: sort voted first

It's very easy to do this in an Animation Blueprint using the Skeletal Control "Transform (Modify) Bone". More info here: https://docs.unrealengine.com/latest/INT/Engine/Animation/NodeReference/SkeletalControls/index.html

more ▼

answered Mar 20 '14 at 05:02 PM

avatar image

Ray Arnett STAFF
1.4k 45 17 71

avatar image Patecaky Mar 20 '14 at 05:32 PM

Ok, thank you Arnett! I will read that this evening.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Not a stupid question at all.

Your current setup is applying a single 60 degree rotation on top of the animation pose. If you wanted to make that rotation dynamic, you could connect a variable to the Rotation input and then modify that variable in the Event Graph.

I actually just used a similar setup for a robot character with rocket boosters that played a hover animation. Whenever the character turned, I would take the amount it turned and rotate the rocket boosters (to look like they were driving the turn) using a Transform Bone node.

more ▼

answered Mar 20 '14 at 09:50 PM

avatar image

Ray Arnett STAFF
1.4k 45 17 71

avatar image Ray Arnett STAFF Mar 20 '14 at 10:11 PM

I made a quick test to illustrate how this works. The two images show the Anim Graph with the rotator variable and the Event Graph where that variable is being set to a random value. alt text

avatar image GregBlast Apr 13 '14 at 02:46 PM

Hi,

personally I'm using the third person template and simply wanted to transform a bone. I did exactly what you described and whatever I do I never see anything changed. I chose a proper bone from the HeroTPP and did what you did in the anim blueprint but nothing changes.

What am I missing ?

Thanks in advance

EDIT: Well nevermind I just found that 'Rotation mode' property was set to 'BMM_Ignore' by default... Good to know for those others like me who have no clue what could be wrong though.

avatar image MajekPL Apr 03 '15 at 09:19 PM

I tried this thing also in my project but its not able to replicate. Do you know why? Variable is set to replicate. Im getting the rotation out of "get controll rotation"

avatar image BiggestSmile Mar 23 '14 at 06:32 PM

I believe he actually meant how to change rotation during time interval. Patecaky, use Lerp (Rotator) to achieve that. I have another question about bone rotation, how to define angles which bone is allowed to rotate? LookAt in UDK had something like that, as documentation says. Currently rotating it as shown on image below.alt Had to set pitch value to 90 to block pitch rotation and make head positioned "right", is there a better way to achieve it?

rotate-bone.png (92.3 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I hope there is no stupid question..

I have tried to update the rotation value (BMM_additive) of a bone from the HeroTPP skeletonmesh at each frame. But the bone moves only once when I simulate or play the animation in the Animation Blueprint previewer.

Could somebody tell me how to ask to the engine to rotate a bone by a precise angle in a precise time interval? Or on a frame basis?

Thanks a lot!alt text

sans titre-1.jpg (441.5 kB)
more ▼

answered Mar 20 '14 at 09:17 PM

avatar image

Patecaky
26 1 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hello there, currently trying to implement head rotation driven by mouse movement. Getting rotation as shown in the picture belowalt text And setting rotation as shown in picture within my comment on Ray's answer, using replace method to set rotation. So head rotates with out any limitations and i could not find a way to properly lock it. Tried simply checking values and setting yaw/roll/pitch to maximum locked values, that didn't work out, it was barely working at all. Also if i change character direction via WASD movement head rotation messes up even more. What would be a proper algorithm to achieve head rotation of this kind? I assume head also should be rotated somehow relative to character rotation as well. Appreciate any help, thanks.

more ▼

answered Mar 24 '14 at 12:40 PM

avatar image

BiggestSmile
1.6k 54 38 105

avatar image pdcsky Oct 05 '14 at 04:27 AM

How did you get the "Mouse Location in World Coordinates" node?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I did this using what Biggest Smile uploaded, worked for me, All I wanted to do was rotate the head just a little to have it straight up and down. Hope this helps anyone with my problem! Cheers! alt text

headrotation.png (571.0 kB)
more ▼

answered Sep 23 '16 at 10:16 PM

avatar image

ClassyGentleman
44 9 6 15

avatar image Imagine-Games Jan 30 '17 at 11:05 PM

this really helped me in 4.14.1.... I set up the character anim so that he still uses the leg movement anims but his spine_03 bone (which has the arms and head) can look up and down, however I hooked up his look up and down movement to the controller aiming

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question