Beautiful, many thanks!
-André
function ooGetImages(){
var oImages = EnumElements("Project.Sources.Image");
if(oImages){
return oImages;
}
else
return false;
}
guillaume laforge wrote:
Something like this ?
sources = EnumElements("Project.Sources.Image")
var e = new Enumerator(sources)
for(;!e.atEnd();e.moveNext())
{
oSource = e.item();
}
Cheers
Guillaume Laforge
2006/1/20, André Adam <a_adam(at)49games.de <mailto:a_adam(at)49games.de>>:
Hi everybody!
Since I still miss my first cup of coffee this morning, anyone
having a
quick suggestion how to access the scenes' Image Sources list through
the object model?
My current attempt looks as nasty as this:
var oImages = new ActiveXObject("XSI.Collection");
oImages.AddItems("Sources.Image.*");
The problem is, I collect all sorts of garbage this way in case there
are no image sources at all in the scene... (see below for the
collections' contents in such a case):
//INFO : Scene.Sources.Audio
//INFO : Scene.Sources.Animation
//INFO : Scene.Sources.Model
//INFO : Sources.Materials
Many thanks in advance for a quick hint! Cheers!
-André
---
Unsubscribe? Mail Majordomo(at)Softimage.COM
<mailto:Majordomo(at)Softimage.COM> with the following text in body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi