Notifications
Clear all
[Closed] [SDK] Enable/disable xref scene not working?
Feb 19, 2013 7:07 am
I’m trying to change the enabled state of an xref scene using the SDK, but for some reason it does not seem to be fully working:
sceneRoot->SetXRefFlags(index, XREF_DISABLED, true);
This does seem to change the enabled value in the xref scene dialog, but it does not seem to actually unload/load the xref in the scene. When I try the same in maxscript however, it works fine:
(xrefs.getXRefFile (index + 1)).disabled = true
Any ideas what could be going wrong here?
1 Reply
Feb 19, 2013 7:07 am
I’m having the same issue with other xref scene flags… It does seem to work when I call
sceneRoot->ReloadXref(index);
But I really wonder if that’s the right thing to do.