RE: linktab.ini: it's what's for lunch

Date : Mon, 30 Jul 2007 15:02:55 -0400
To : <XSI(at)Softimage.COM>
From : "Matthew Carpenter" <mcarpent(at)Softimage.COM>
Subject : RE: linktab.ini: it's what's for lunch
Hi Alan,

You're up and running so I'll answer the remaining questions.

>>I can't be certain whether XSI found the linktab.ini

In the script editor use this script.  It will give a listing of all the
loaded linktab rules and if for some reason it was unable to find the
file it will say as much.
There is more information on this topic within the XSI documentation.

set l_linktab = xsiutils.Linktab
if l_linktab.Filename(szFileName) = "True" then
   Set l_rulesColl = l_linktab.Rules
   LogMessage TypeName(l_rulesColl)
   ' Display each rule in the collection
   For each l_line in l_rulesColl 
       LogMessage l_line 
   Next
else
   LogMessage "Linktab file not set or found"
end if


>>Trying it with "XSI_HOME/linktab.ini" and it works. :D  ... though it
does make me wonder why it didn't work before.

IIRC since XSI version 3.0~3.5 we removed automatic detection of the
linktab file, as it was causing headaches for those people where it was
automatically loading and they were not aware of it at the time.  Caused
some rather interesting surprises when it came time to render :)

In any event we decided that if you want to use linktab you must
explicitly set it.  The rules are as follows:

You can set the Linktab Location to a directory when a file called
linktab.ini exists.
Like so:  setenv SI_LINKTAB_LOCATION /var/tmp   (where linktab.ini
resides in /var/tmp/.)

Or you can explicitly set the file name and path.  This is useful if you
need to explicitly set the linktab file or if you are naming your
linktab rule file something other than linktab.ini.
Valid examples include:
setenv SI_LINKTAB_LOCATION /var/tmp/linktab.ini
setenv SI_LINKTAB_LOCATION /var/tmp/SomeOtherFile
setenv SI_LINKTAB_LOCATION $HOME/MyLinkTabRuleFile

Etc.

>>Also I'd like to have two options for s: (because of a reverse
conversion for older scenes) - is it possible to have two options there?

Yes this would work.  You would just reverse the linktab depending on
which OS will be doing the loading/persisting

Example:  You have a UNC path where your image(s) are saved ->
\\share\public\mcarpent\imagebank
You had persisted scenes on windows using a variety of UNC and Mapped
drive letters like so
\\share\public\mcarpent\imagebank   -> \\share\public\mcarpent\imagebank
W:\						->
\\share\public\mcarpent\
X:\						->
\\share\public\mcarpent\imagebank

The following linktab file would load the persisted image in all cases:

\\share\public\mcarpent\imagebank	/netfs/PUBLIC/mcarpent/imagebank
W:\imagebank				/netfs/PUBLIC/mcarpent/imagebank
X:
/netfs/PUBLIC/mcarpent/imagebank

Validated on RHE4 ... YMMV.

Hope that helps,

-matt

-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Alan Jones
Posted At: Monday, July 30, 2007 12:38 PM
Posted To: xsi list
Conversation: linktab.ini: it's what's for lunch
Subject: Re: linktab.ini: it's what's for lunch


Hi again Mikko,

I decided to try again - as before when I set the absolute path it was
to somewhere outside the XSI install directory.

Trying it with "XSI_HOME/linktab.ini" and it works. :D

Thanks for the help - though it does make me wonder why it didn't work
before.

Cheers,

Alan.

On 7/30/07, Alan Jones <skyphyr(at)gmail.com> wrote:
> Hi Mikko,
>
> I tried using the environment variable and giving an absolute path, 
> but this also didn't seem to work. I can't be certain whether XSI 
> found the linktab.ini in either situation unfortunately :(
>
> Cheers,
>
> Alan.
>
> On 7/30/07, Mikko Ronkainen <noratio(at)kolumbus.fi> wrote:
> > Feel bit silly to advice, but I made twice same mistake recursively 
> > having typo in .xsi script for .ray3hosts. Are you sure XSI finds
your linktab?
> >
> > in render variables
> >
> > setenv SI_LINKTAB_LOCATION "$XSI_USERHOME/linktab.ini"
> >
> > Manual also described xsi was searhcing linktab from defined path, 
> > but it didn't. I had to describe the file also as in example, for 
> > both .ray3hosts and linktab.
> >
> > Cheers
> > Mikko
> >
> > On Mon, 30 Jul 2007 18:41:25 +0300, Alan Jones <skyphyr(at)gmail.com>
wrote:
> >
> > > Hi All,
> > >
> > > Anyone got some advice on linktabs?
> > >
> > > I've tried setting it up both using a path with the environment 
> > > variable and dropping it in the XSI_HOME directory as per 
> > > http://softimage.wiki.avid.com/sdkdocs/abj447671.htm
> > >
> > > I get this error
> > > // WARNING : 3033 - Unable to resolve path:
> > > \\isilon\fluid\users\alanj\manu-sp.jpg
> > > // WARNING : 3033 - Unable to resolve path: 
> > > S:\users\alanj\manu-sp.jpg
> > >
> > > Using this linktab
> > > c:\Softimage    /opt/Softimage
> > > s:              /fluid
> > > \\isilon\fluid  /fluid
> > >
> > > Also I'd like to have two options for s: (because of a reverse 
> > > conversion for older scenes) - is it possible to have two options 
> > > there? s: -> unix would only use one but two different options on 
> > > the unix end should resolve to s:
> > >
> > > I guess a good starting point would be how I can confirm whether 
> > > it's rendered.
> > >
> > > Cheers,
> > >
> > > Alan.
> > > ---
> > > 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
> >
>
---
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.