Dodgy
04-03-2005, 05:47 PM
Hiya,
Can someone give me the way to process item references when saving and loading a scene or doing a load from scene. I've tried using object ID's but this seems inconsistent, and using names would be open to objects being duplicated and causing problems. I know Create{} and Load{} are called for motion lscripts during loads or either kind, but I can't quite see how to maintain a unique lock to an item.
Using Id's works perfectly when just loading a scene, but the id's become useless when doing a load from scene. Does LW do a Process{} once with the 'Load from scene' scene in an 'ID buffer' so that you can process ID's before merging them with the loaded scene, then sort them out using object agents, or can someone clear this up for me?
Thanks,
Mike
I'd thought about using ID offsets with motion scripts (using ma.objID to give the base id and working out the target id from that) but this wouldn't work with masters would it which can't give a object to run off...
Can someone give me the way to process item references when saving and loading a scene or doing a load from scene. I've tried using object ID's but this seems inconsistent, and using names would be open to objects being duplicated and causing problems. I know Create{} and Load{} are called for motion lscripts during loads or either kind, but I can't quite see how to maintain a unique lock to an item.
Using Id's works perfectly when just loading a scene, but the id's become useless when doing a load from scene. Does LW do a Process{} once with the 'Load from scene' scene in an 'ID buffer' so that you can process ID's before merging them with the loaded scene, then sort them out using object agents, or can someone clear this up for me?
Thanks,
Mike
I'd thought about using ID offsets with motion scripts (using ma.objID to give the base id and working out the target id from that) but this wouldn't work with masters would it which can't give a object to run off...