Not applicable
10-07-2016
02:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone I'm trying to create a Revit plugin in which I have to export the document to FBX to be opened in Unity.
The export works fine, I'm able to open it in Unity but all the materials are gone.
Is there a way to export with materials ?
Here is my code to export to FBX
UIApplication uiApp = commandData.Application; Document doc = uiApp.ActiveUIDocument.Document; ViewSet viewSet = new ViewSet(); viewSet.Insert(doc.ActiveViewSet); doc.Export("C:/......PATH......", "nameFBXExportedFile", viewSet, new FBXExportOptions());
Thanks by advance !
Solved! Go to Solution.
Link copied