Re: absolute path

Date : Thu, 4 May 2006 11:32:50 -0400
To : <XSI(at)Softimage.COM>
From : "Pierre Lalancette" <pierrel(at)hybride.com>
Subject : Re: absolute path
I think I did not express myself correctly. It is not really the path to the clips, but the referencing to the clip object. I need the full referencing all the time as I use parts of it for other commands.

So, sometimes, for the same ImageClip Object, I get one of those two possibilities. I need the full one all the time. I gather this information this way : var oImageClip = Obj.Material.ImageClips(i);

good: //INFO : The Shader Image Clip = cube1.Material3.Phong.Image._256x256_pic1

bad:  //INFO : The Shader Image Clip = Clips._256x256_pic1



Pierre "Lancelot" Lalancette

noob scripter.



---- Original Message -----

From: "André Adam" <a_adam(at)49games.de>
To: <XSI(at)Softimage.COM>
Sent: Thursday, May 04, 2006 10:51 AM
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




--- Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body: unsubscribe xsi


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.