Re: [script] Changing reference model source paths

Date : Fri, 8 Jul 2005 17:12:06 -0400
To : XSI(at)Softimage.COM
From : Bernard Lebel <3dbernard(at)gmail.com>
Subject : Re: [script] Changing reference model source paths
Thanks Adam.

I think I have found something disturbing.

When I check in the File > Source Paths page, I can see the File Path
parameter is set correctly. However, in the model ppg as well as when
I run script to log the names, they are all wrong (it's a UNC vs
mapped drive thing, both locations are actually valid).


Yet another unsolvable path mess thing....


Bernard


On 7/8/05, Adam Ferrall <aferrall(at)omation.com> wrote:
> Hey Bernard,
> 
> We do this all the time in scripting so I know it's possible.  Either by
> getting the "model_clip" and the "source" object for the referenced model
> and settings its "lowres_path", etc parameters or by using the SetValue
> command that comes up in the script editor when you change a model
> resolution through the UI.  The only weirdness I've run across is when
> trying to empty a path.  You can't assign the empty string through the
> SetValue or the object model because XSI converts this to null before it
> runs the command.  If you assign the empty string to a variable and assign
> it through the object model, however, the path value is changed correctly.
> Hope this helps.
> 
> -Adam
> 
> ----- Original Message -----
> From: "Bernard Lebel" <3dbernard(at)gmail.com>
> To: <XSI(at)Softimage.COM>
> Sent: Friday, July 08, 2005 12:52 PM
> Subject: [script] Changing reference model source paths
> 
> 
> > Hello,
> >
> > Changing the "Filenames for Model Resolutions" works fine with done in
> > the interface, ie by typhing the new path in the text field.
> >
> > Now, I run the same command it has generated, and nothing happens! The
> > path remains the same, no matter what! So it is possible *at all* to
> > change ref model source paths in scripting?
> >
> >
> > Thanks
> > Bernard
> >
> > ---
> > 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.