8,484
edits
Paradox-01 (talk | contribs) m (improved example of obj/camera movement tracking)  | 
				Paradox-01 (talk | contribs)  m (how to import dae)  | 
				||
| Line 566: | Line 566: | ||
==Read file==  | ==Read file==  | ||
===import DAE===  | |||
 CopyPaste, filePath, parentObject, 2  | |||
'use scene object if you don't want to group the imported object under a parent, e.g.:  | |||
 CopyPaste, filePath, ActiveProject.ActiveScene, 2  | |||
===import DAE (and get name)===  | |||
Sometimes you want to get the name of the object you just imported.  | |||
In that case you use "ImportModel" instead of "CopyPaste"  | |||
 ImportModel filePath, [parentObject], , , "0"  | |||
 logmessage selection(0).parent  | |||
 logmessage selection(0) 'this gets root object (file name)  | |||
 logmessage selection(0).children(0) 'this gets first object of file  | |||
If you want to remove the null object and select the new parent you add these lines:  | |||
 set nullObject = selection(0)  | |||
 set newParent = selection(0).children(0)  | |||
 CutObj newParent  | |||
 DeleteObj nullObject  | |||
 SelectObj newParent  | |||
===Binary===  | ===Binary===  | ||
  scan_AKEV_file_table  |   scan_AKEV_file_table  | ||
edits