Thanks for the explanation. Now I know it's a feature I can live with it. :)
Sascha
Aloys Baillet wrote:
Hi Sascha,
It's not a refresh issue, it's a "feature" of the referenced models:
XSI actually replace the model by another model clip instance each
time to change resolution: the model is destroyed and a new one is
created instead.
The only objects that survive a referenced model resolution change are
the ModelSource object and the model clips, and that's not really
useful in your case.
Your script will have to look like
ImportModel "X:\referenceModel.emdl", , true, oRefModel
set name = oRefModel.Name
SetResolutionOfRefModels oRefModel, 0
oRefModel = ActiveSceneRoot.Models(name)
Hope this helps,
Aloys
On 5/10/06, *Bernard Lebel* <3dbernard(at)gmail.com
<mailto:3dbernard(at)gmail.com>> wrote:
Well that's quite similar to what happens to shaders shader you
disconnect parameter sources (connected shader). Perhaps it is a
refresh issue? But it sure doesn't sound as the expected behavior.
Bernard
On 5/9/06, Sascha Robitzki <s.robitzki(at)trixter.de
<mailto:s.robitzki(at)trixter.de>> wrote:
> That is exactly what I meant, it's a scripting question. I have a
> moderate workaround for it. I was just a little confused because
of the
> broken link between the variable and the object and wanted to
check if
> I'm missing something of if this is really the default behavior.
> Makes this really sense? In my opinion it's bug and I would
prefer the
> behavior I'm expecting.
>
> Thanks,
> Sascha
---
Unsubscribe? Mail Majordomo(at)Softimage.COM
<mailto:Majordomo(at)Softimage.COM> with the following text in body:
unsubscribe xsi
--
Aloys Baillet - XSI Technical Director
Character Dpt - Animal Logic
--
--
Sascha Robitzki
TD (at) www.trixter.de
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi