Script to load a specific Xref scene on a specific frame
Hi all,
I'm looking for a script that will allow me to load a specific Xref scene on a certain frame.
For example:
I have an xref loaded in my scene, called scene_1.max, located at: C:\scenes\scene_1.max
This is fine for frame 1 of my animation.
In the same folder there are 99 other files, named scene_2.max through to scene_100.max.
I need the Xref scene_1.max to be replaced by scene_2.max on frame 2, by scene_3.max on frame 3 and so on.
Is there any way to script this? Does something already exist?
I'm very grateful for any ideas!
Regards
Eric
Comments
Well you could add a callback
Well you could add a callback to the slidertime, which will change the xref filename accordingly.
But it will dramatically kill your viewport performance!
If you send your job to a renderfarm, you will need to add the script in a prerender() callback as well.
second possibility is to load all your xrefs, but link them to a dummy which you will animate on 1 frame (For exemple putting it very low on your scene, like -100000 in z)
or if you can give us more details on why you have/need 100 Xrefs, we might come with a third solution