PublicAPI: How to use existing AHouAssetActor for APIWrapper

   1364   3   1
User Avatar
Member
8 posts
Joined: 10月 2013
Offline
I am using the PublicAPI with python. The examples nicely show how to instantiate a HDA Houdini Asset to the level and then use the returned wrapper further.

Is it possible to create a wrapper for a HoudiniAssetActor that already exists in the level, instead of having to instantiate a new one every time?
User Avatar
スタッフ
524 posts
Joined: 9月 2016
Offline
Hi,

Did you try using UHoudiniPublicAPIAssetWrapper::CreateWrapper(), this should create a wrapper using an existing AHoudiniAssetActor or UHoudiniAssetComponent.
User Avatar
Member
8 posts
Joined: 10月 2013
Offline
Thanks for the hint, works like a charm!
User Avatar
Member
18 posts
Joined: 11月 2015
Offline
For anyone else struggling like me to translate this to python. Here is a solution:

api = unreal.HoudiniPublicAPIAssetWrapper
_g_wrapper = api.create_wrapper(None,MyHoudiniAssetActor)
  • Quick Links