Files
UnrealEngineUWP/Engine/Source/Programs/Enterprise/Datasmith/DatasmithRhinoExporter/DatasmithRhino7.Target.cs
Marc Audy 8f73cd7fa9 Merge UE5/Release-Engine-Staging @ 15630841 to UE5/Main
This represents UE4/Main @ 15601601

[CL 15631170 by Marc Audy in ue5-main branch]
2021-03-05 19:27:14 -04:00

33 lines
706 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System;
using System.IO;
public class DatasmithRhino7Target : DatasmithRhinoBaseTarget
{
public DatasmithRhino7Target(TargetInfo Target)
: base(Target)
{
}
public override string GetVersion() { return "7"; }
public override string GetRhinoInstallFolderWindows()
{
try
{
return Microsoft.Win32.Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\McNeel\Rhinoceros\7.0\Install", "Path", "") as string;
}
catch(Exception)
{
return "";
}
}
public override string GetRhinoInstallFolderMac()
{
return "/Applications/Rhino 7.app/Contents/Frameworks/RhCore.framework/Versions/Current/Resources/";
}
}