Announcement

Collapse
No announcement yet.

Does GetAllBodiesBelow exist as a function somewhere?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Does GetAllBodiesBelow exist as a function somewhere?

    I see SetAllBodiesBelowBlendWeight manages to access the child bones/bodies somehow. Anyone know if it's possible to list their names at runtime?
    Cheers.

    #2
    Originally posted by eanandroid View Post
    I see SetAllBodiesBelowBlendWeight manages to access the child bones/bodies somehow. Anyone know if it's possible to list their names at runtime?
    Cheers.
    I could work on a BP node for this, I do not see any C++ that covers this so may even make an engine pull request.



    Rama
    UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

    ♥ Rama

    Comment


      #3
      Thanks for that Rama. I'll stop turning rocks over looking for its pseudonym then.

      I'll guess I'll do some kind of recursive check in the construction script and store them in an array for the time being.

      Thanks for your help.

      Comment


        #4
        Here's what I've come up with in the meantime. It's not pretty though and requires a struct, array, and 2 functions.
        It seems to work ok though so I'm happy:

        Struct:
        Click image for larger version

Name:	GetChildBones1.jpg
Views:	1
Size:	45.1 KB
ID:	1080393

        Array (of that struct):
        Click image for larger version

Name:	GetChildBones2.jpg
Views:	1
Size:	19.4 KB
ID:	1080394

        Construction routine:
        Click image for larger version

Name:	GetChildBones3.jpg
Views:	1
Size:	91.0 KB
ID:	1080395

        Func 1 (BoneHasChild):
        Click image for larger version

Name:	GetChildBones4.jpg
Views:	1
Size:	102.9 KB
ID:	1080396

        Func 2 (Recursive BoneGetChildren):
        Click image for larger version

Name:	GetChildBones5.jpg
Views:	1
Size:	139.7 KB
ID:	1080397

        Running it:
        Click image for larger version

Name:	GetChildBones6.jpg
Views:	1
Size:	83.8 KB
ID:	1080398

        Cheers
        Last edited by eanandroid; 06-23-2015, 07:51 PM. Reason: Labelled wrong sibling (Parent instead of Child)

        Comment


          #5
          Originally posted by eanandroid View Post
          Thanks for that Rama. I'll stop turning rocks over looking for its pseudonym then.

          I'll guess I'll do some kind of recursive check in the construction script and store them in an array for the time being.

          Thanks for your help.
          Congrats on finding your own solution!

          I did it! I made single BP nodes to do this, using a recursive traversal of the skeleton!

          Check it out!

          Gonna finish polishing and upload to my Victory BP Library!

          Rama

          Here I return all bone names below "thigh_l" in the epic skeleton

          Click image for larger version

Name:	Done.jpg
Views:	1
Size:	142.5 KB
ID:	1080399
          UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

          ♥ Rama

          Comment


            #6
            A single node would be terrific Rama. I shall def try it out when you upload it.

            Thanks a lot for this.

            Comment


              #7
              New BP Node for Everyone!

              Dear Eanandroid,

              Here is my new node for you Eanandroid!

              I had a lot of fun making this!

              I used a recursive function to traverse the skeleton tree, and the FReferenceSkeleton from the SkeletalMesh asset, which works great in packaged games (unlike the USkeleton).

              Rama's Victory BP Library ~ Get All Bones Below Bone
              https://forums.unrealengine.com/show...l=1#post317467

              Here's what my shiny new Victory BP Node looks like!

              Click image for larger version

Name:	GetAllBonesNamesBelowBone.jpg
Views:	2
Size:	214.7 KB
ID:	1080402

              ~~~

              My C++ Code For You

              The C++ code I just wrote for this node and the download link are in my Victory BP Library thread!

              Rama's Victory BP Library ~ Get All Bones Below Bone
              https://forums.unrealengine.com/show...l=1#post317467

              I've tested this as working with the packaging process!

              Have fun today!



              Rama
              UE4 Marketplace: Melee Weapon Plugin & Compressed Binary Save System Plugin | Rama's C++ AI Jumping Videos | Vertex Snap Editor Plugin

              ♥ Rama

              Comment


                #8
                Absolutely brilliant!

                Have a great day Rama, and thankyou again.

                Comment

                Working...
                X