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"

BP - scale bones on a skeletalmesh component?

Is there a way to scale bones on a skeletalmesh component from within blueprint? Ive tried this and all I could come up with some poseablemesh type. Im wanting to scale the head bones down to remove the head of the 3rd person mesh.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 02:49 AM in Blueprint Scripting

avatar image

ue4-archive ♦♦ STAFF
50k 3670 1999 9124

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

1 answer: sort voted first

You'll need AnimBlueprint for the SkeletalMeshComponent, and add node -ModifyBone SkeletalControl- and it will allow you to modify scale or rotation or translation of the bone.

Thanks,

--Lina,

more ▼

answered Mar 11 '14 at 02:49 AM

avatar image

ue4-archive ♦♦ STAFF
50k 3670 1999 9124

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

Thanks Lina that got me alittle closer but Im still having some issues accessing this from within my Character blueprint. Ive done as you suggested with Anim Blueprint but Im not sure how I should be using the skeletal control within my states to scale the headbone until I tell it to scale back. It requires a flow connector which only goes the one way so hmm

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

Thanks Lina that got me alittle closer but Im still having some issues accessing this from within my Character blueprint.

We have internally blueprint communication working, but it's not released yet. For now what you can do to communicate between anim blueprint and character blueprint using interface. You can create interface and implement in the other side.

Ive done as you suggested with Anim Blueprint but Im not sure how I should be using the skeletal control within my states to scale the headbone until I tell it to scale back. It requires a flow connector which only goes the one way so hmm

I'm not sure exactly what you meant by this. Could you add screenshot to it? ModifyBone controller needs input of pose to modify. I wonder that's where confusion is?

Thanks,

--Lina,

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

Okay I was required to add a bool out just to get the function "SetHeadScale" to show up in the animblueprint.

alt text

What I did from there is create a new State so I have access to Modify Bone node.

alt text

alt text

Then I hooked the state up into my flow like so (Im not sure if this is "correct").

alt text

I simply put a tick in the bCanEnterTransition to Run/Idle, perhaps there is an issue there.

Ive looked at what you said about ModifyBone node needing a pose and gave it a Mesh Space Ref Pose but I have no idea if thats the correct one. It doesnt seem to do anything currently when I call SetHeadScale from my Character.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

I don't think ModifyBone has to be inside of state. It is better to place after all animation is handled in top graph (AnimGraph). Is there any particular reason why you put it in state?

If you put it in the state, when converted and if it's not blending well, it can be overwritten by animation.

--Lina,

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

I put it in state because umm, I thought that was the best place for it. I really dont know what I meant to be doing, I might just leave it for now and look in the c++ and see if theres an easier way. alt text

boned.jpg (76.1 kB)
avatar image Dudester01 Apr 30 '18 at 08:51 AM

Hello I can't add any "modify bone" nodes in the anim bp . When I try to add it, it won't show up.I have disabled context search

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

So does this still not working? Did you mark "Apply Scale" check box?

Thanks,

--Lina,

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 02:49 AM

Okay so I got the scaling working thanks heaps :) I needed to set the Alpha to 1, the scale mode to Replace and scale space to WorldSpace and that seems to do the trick. Im still having an issue passing a reference to the mesh within the regular blueprint so I might start another thread about that because the scaling works fine in the Persona view :)

avatar image Dudester01 Apr 30 '18 at 08:59 AM

Hello I need to modify bone from event that is being fired from the character blueprint how to do it

(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