Re: [script] Changing reference model source paths

Date : Fri, 8 Jul 2005 13:45:20 -0700
To : <XSI(at)Softimage.COM>
From : "Adam Ferrall" <aferrall(at)omation.com>
Subject : Re: [script] Changing reference model source paths
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


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.