Jump to content

Mod Tool/Scripting: Difference between revisions

m
DAE and FBX export
m (TwoSided-ness for main material, looking forward to do the same for polygon clusters ~cough cough sarcasm~)
m (DAE and FBX export)
Line 840: Line 840:


When screenshots are big enough the info text doesn't overlay object and can be cut away in further image processing.
When screenshots are big enough the info text doesn't overlay object and can be cut away in further image processing.
==Write file==
===Export DAE===
Before you go crazy, yes, the command "CreateExportCrosswalkOptions" doesn't get logged in the script history.
set oProps = ActiveProject.ActiveScene.Root.Properties
if typename (oProps.find("ExportCrosswalkOptions")) = "Nothing" then
CreateExportCrosswalkOptions , "ExportCrosswalkOptions"
end if
' sets the extension to dae
SetValue "ExportCrosswalkOptions.Format", 1
' set export path and file name
SetValue "ExportCrosswalkOptions.Filename", CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\export_test.dae"
' selection only
SetValue "ExportCrosswalkOptions.ExportSelectionOnly", True
' export
ExportCrosswalk "ExportCrosswalkOptions"
===Export FBX===
FBXExportLights (false)
FBXExportSelection (true)
' mark FBXExport and hit F1 to get more options
FBXExport (CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\export_test.fbx" )


==Read file==
==Read file==
===import DAE===
===Import DAE===
  CopyPaste, filePath, parentObject, 2
  CopyPaste, filePath, parentObject, 2


8,323

edits