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"

How to generate a Blueprint / BlueprintGraph using C++?

Hi folks,

I would like to generate a blueprint using C++. Not just a blueprint node, or expose a C++ function for blueprints. But an entire graph with nodes, connections, pins, comments, etc created.

The reason I would like to do this is that I would like to have blueprints for things like their visual debugging. And am in a scenario where I believe 90% of the blueprint creation work could be done programmatically. But would like to have actual blueprints so that other members of my team could edit / reference the blueprint for that last 10%.

After looking around I could not find much info on how to do this other than that the class: https://docs.unrealengine.com/latest/INT/API/Editor/BlueprintGraph/index.html must be used. To give some context, I am interested in generating animation blueprints. So I believe the specific class I need is: https://docs.unrealengine.com/latest/INT/API/Editor/AnimGraph/index.html.

I haven't found any examples of people doing this before. Does anyone have references or tutorials on how to do this? (So I don't have to trial-and-error the classes above). Particularly concerned about how to connect nodes, as from the link above it is not immediately obvious.

Note: Asking this question a bit prematurely in case anyone has a tutorial or know-how handy. I am in the process of trying this out. Once I figured it out I'll try to post my solution since it's been hard to find one on the web. That being said any hints in the right direction are appreciated.


Product Version: UE 4.16
more ▼

asked Sep 03 '17 at 03:33 PM in C++ Programming

avatar image

10 1 5

avatar image redfeather_ Sep 06 '17 at 11:47 PM

Just a slight update. For those looking into working with animations in C++. Rama's tutorial (the first that pops up when googling the topic) is a good start: https://wiki.unrealengine.com/Animation_Blueprint,_Set_Custom_Variables_Via_C%2B%2B

Still looking for how to generate a blueprint in C++ though. I found the code-side where blueprints get parsed in the engine, But still not sure how to create one.

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

0 answers: sort voted first
Be the first one to answer this question
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