Hi, Im testing a SketchUp-Datasmith-UnrealEngine workflow. I was using a custom ruby script for that until now (export selected + hide some stuff).
My question is:
is it possible to call the datasmith export methods in SketchUp using ruby? What I would like to do is:
Start my custom ruby plugin
Temporary hide some objects / faces with a specific material
Call the datasmith method passing my selection OR temporary hide everything that doesn’t need to be exported if export selected isn’t available in the Datasmith api
after the datasmith export, unhide what was temporary hidden
Hello, the dev told me that you should be able to access to the datasmith functions:
e.g. EpicGames::Datasmith.export <filename>, <dir> - will export model into <dir>/<filename>.udatasmith
The sketchup datasmith plugin is a Ruby script itself. The files are installed into “C:\ProgramData\SketchUp\SketchUp XXXX\SketchUp\Plugins\UnrealDatasmithSketchUp”, main Ruby file for the plugin (where all the export functions are defined and called) are in plugin_main.rb