8,452
edits
Paradox-01 (talk | contribs) m (fbx export via scripting) |
Paradox-01 (talk | contribs) m (scripting: import an image clip only once) |
||
Line 496: | Line 496: | ||
| [35] dae export | | [35] dae export | ||
| [36] fbx export | | [36] fbx export | ||
|- | |||
| [37] import an image clip only once | |||
| | |||
| | |||
|} | |} | ||
Line 1,417: | Line 1,421: | ||
' mark FBXExport and hit F1 to get more options | ' mark FBXExport and hit F1 to get more options | ||
FBXExport (CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\export_test.fbx" ) | FBXExport (CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\export_test.fbx" ) | ||
'''[37] import an image clip only once''' | |||
found_img = 0 | |||
set clips = ActiveProject.ActiveScene.ImageClips | |||
for each clip in clips | |||
logmessage clip.name | |||
if clip.name = "white_512_512_tga" then | |||
logmessage "found img" | |||
found_img = 1 | |||
end if | |||
next | |||
if found_placeholder_img = 0 then | |||
' import a new texture | |||
' just so: | |||
SICreateImageClip "C:\Users\RRM\Desktop\white_512_512.tga" | |||
' or as script object: | |||
'set oImage = AddImageSource ("C:\Users\RRM\Desktop\white_512_512.tga") | |||
'set oImageClip = AddImageClip (oImage) | |||
end if | |||
edits