This returns absolute paths for me, ripped from a script of mine,
therefore dealing with image sources instead of clips. However, you
should be able to easily reference the image source from the image clip
object. Hope it is of some help...
Cheers!
-André
var eImages = new
Enumerator(Dictionary.GetObject("Sources.Image").NestedObjects);
while(!eImages.atEnd()){
var oImagePath = eImages.item().Path.Value; //Source File Path
LogMessage(oImagePath);
eImages.moveNext();
}
Pierre Lalancette wrote:
Hello everyone. First time here.
I'm messing with shader in j-script. When I access to the IMAGE CLIP,
sometimes I get the absolute path, and some other time I get the
relative path, and it crash my script. How can I tell XSI to always
give me the absolute path?
Thanks a lot!
Pierre "Lancelot" Lalancette.
Hybride.
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi