I am using an attribute wrangle to create the points. I am trying to set the rot for the socket but when I try to load into unreal engine (as digital asset) it crashes unreal (hard crash).
If I comment out the add and set attrib for rot then it loads in unreal and all the sockets are created, but I need
to fix it so I can set the rotation of the socket as well.
Here is the vex I am using in the wrangle. Any ideas on what I am doing wrong?
void CreateSocket(string socketName; vector position; vector rotation) { int handle = addpoint(geoself(), position); setpointgroup(geoself(), 'socket_room', handle, 1); setattrib(geoself(), 'point', 'unreal_mesh_socket_name', handle, 0, socketName); setattrib(geoself(), 'point', 'rot', handle, 0, rotation); } addattrib(geoself(), 'point', 'unreal_mesh_socket_name', ''); addattrib(geoself(), 'point', 'rot', {0,0,0}); CreateSocket('Floor_North_West', {2.5, 0, 2.5}, {1.0, 0, 0}); CreateSocket('Floor_North_East', {-2.5, 0, 2.5}, {-1.0, 0, 0});
Here is the relevant log info after the crash
LogFactory: FactoryCreateFile: HoudiniAsset with HoudiniAssetFactory (0 0 DUnrealProjects/modeus/Resources/Houdini/Themes/DungeonTheme/ungeon_theme_tile_floor_corridor_base.hdalc)
LogHoudiniEngineEditor: PostSpawnActor HoudiniAssetActor_0, supplied Asset = 0x0000026A687327F0
LogActorComponent: UnregisterComponent: (/Game/Maps/DungeonThemeTIles.DungeonThemeTIlesersistentLevel.ungeon_theme_tile_floor_corridor_base.StaticMeshComponent_1) Not registered. Aborting.
LogHoudiniEngineEditor: PostSpawnActor HoudiniAssetActor_1, supplied Asset = 0x0000026A687327F0
LogHoudiniEngine: HAPI Asynchronous Instantiation Started for HoudiniAssetActor_1: Asset=Object/dungeon_theme_tile_floor_corridor_base, HoudiniAsset = 0x687327f0
LogHoudiniEngine: ungeon_theme_tile_floor_corridor_base_2 FinishedInstantiation.
LogHoudiniEngine: HAPI Asynchronous Cooking Started for ungeon_theme_tile_floor_corridor_base_2., AssetId = 4
LogHoudiniEngine: ungeon_theme_tile_floor_corridor_base_2 FinishedCooking.
LogStaticMesh: Building static mesh S_DT_Floor_Base_Corridor_SIZE_4_5_0_0_rendered_collision_geo_584209E4…
LogStaticMesh: Built static mesh /Game/Maps/DungeonThemeTIles.DungeonThemeTIlesersistentLevel./Game/Houdini/ungeon_theme_tile_floor_corridor_base_F14159F24106/S_DT_Floor_Base_Corridor_SIZE_4_5_0_0_rendered_collision_geo_584209E4.S_DT_Floor_Base_Corridor_SIZE_4_5_0_0_rendered_collision_geo_584209E4
LogWindows: Windows GetLastError: The operation completed successfully. (0)
Thanks.