8,484
edits
| Paradox-01 (talk | contribs) mNo edit summary | Paradox-01 (talk | contribs)  mNo edit summary | ||
| Line 1,650: | Line 1,650: | ||
|   logmessage XSIUtils.ResolvePath("$XSI_HOME/") & "Application\DSScripts\Model.vbs" |   logmessage XSIUtils.ResolvePath("$XSI_HOME/") & "Application\DSScripts\Model.vbs" | ||
|   ' C:\Softimage\Softimage_Mod_Tool_7.5\Application\DSScripts\'''Model.vbs''' |   ' C:\Softimage\Softimage_Mod_Tool_7.5\Application\DSScripts\'''Model.vbs''' | ||
| A backup of the original file can be found '''[https://dl.dropboxusercontent.com/u/139715/OniGalore/ModToolScript/Model.vbs here.]''' | |||
| There are two issues that can be fixed by modifying this file. | There are two issues that can be fixed by modifying this file. | ||
| Line 1,663: | Line 1,664: | ||
|   end if |   end if | ||
| Following function is always triggered, so we will modify it. | |||
|   sub ImportDotXSIProc( in_Filename, in_Parent ) |   sub ImportDotXSIProc( in_Filename, in_Parent ) | ||
|   	<font  |   	<font style="color:#DD0000">if instr(in_Filename,"file:///") = 1 then | ||
|   		in_Filename = replace(in_Filename, "file:///", "") |   		in_Filename = replace(in_Filename, "file:///", "") | ||
|   	end if |   	end if | ||
|   	Set objFSO = CreateObject("Scripting. |   	Set objFSO = CreateObject("Scripting.FileSystem<Object") | ||
|   	FileExt = objFSO.GetExtensionName(in_Filename)</font> |   	FileExt = objFSO.GetExtensionName(in_Filename)</font> | ||
|  	if application.license = "Avid 3D" then | |||
|  		SIImportDotXSIFile in_Filename, in_Parent | |||
|  	else | |||
|  		Set oFS = CreateObject("Scripting.FileSystemObject")  | |||
|  		<font style="color:#DD0000">if oFS.FileExists(in_Filename) = True then | |||
|  			if FileExt = "xml" then | |||
|  				' is this an Oni xml file ? | |||
|  		 		Set xmlDoc = CreateObject("Microsoft.XMLDOM") | |||
|  				xmlDoc.Async = "False" | |||
|  				xmlDoc.Load(in_Filename) | |||
|  				if xmlDoc.selectNodes("Oni").length > 0 then | |||
|  					logmessage "Oni xml file detected" | |||
|  					read_xml "OFGA", in_Filename | |||
|  				end if | |||
|  				exit sub | |||
|  			end if</font> | |||
| The lines in red has been added. | |||
| Line 1,789: | Line 1,763: | ||
| '''version roadmap''' | '''version roadmap''' | ||
| * v7 (current) | * v7 (current) | ||
| * v7.1 furniture: basic | * v7.1 furniture: basic import (OFGA*.xml) & export (BINACJBOFurniture.xml) | ||
| * v7.2  | * v7.2 turrets: basic import/export | ||
| * v7. | * v7.? furniture: advanced import (OFGA*.xml / BINACJBOFurniture.xml) & export (OFGA*.xml/.oni as new class, BINACJBOFurniture.xml) | ||
| * v7. | * v7.? turrets: advanced import/export | ||
| * ... | * ... | ||
| * v8 final Oni Object Library | * v8 final Oni Object Library | ||
edits