Get material parameter parent group

I would like to at runtime in blueprints to get the name of any given material parameter(s) parent group, is that possible?

Example below, I would like the string “Variant” from the parameter “Blackwash Color”. I already know how to get/set material parameters and that works great, I want to make some UI based off of the group.

259228-capture.png

It seems with C++ this is possible but not in a blueprint UMaterial::GetGroupName | Unreal Engine Documentation

I’ll answer my own question. Below is the custom C++ needed to expose this data in a crude way back to blueprints, it works, but there is nothing native in blueprints right now to get a parameter group.

.cpp

FString UFullMaterialProperties::GetMaterialInstanceProperties(UMaterialInstanceDynamic * Material)
{
	FString result;
	for (FVectorParameterValue param : Material->VectorParameterValues)
	{				
		FName group;
		Material->GetGroupName(param.ParameterInfo, group);
		result.Append(param.ParameterInfo.Name.ToString());
		result.Append(":");
		result.Append(group.ToString());
	}
	return result;
}

.h

UCLASS()
class UFullMaterialProperties : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()

	UFUNCTION(BlueprintCallable, Category = "AAAMatProps")
	static FString GetMaterialInstanceProperties(UMaterialInstanceDynamic* Material);
};

Then use this in your blueprint. You create a dynamic material instance and copy all the properties, if you dont copy the properties then it wont pick up the groups.