Re: absolute path

Date : Thu, 04 May 2006 16:51:29 +0200
To : XSI(at)Softimage.COM
From : André Adam <a_adam(at)49games.de>
Subject : Re: absolute path
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

  • References:
    • absolute path
      • From: "Pierre Lalancette" <pierrel(at)hybride.com>

Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.