Notifications
Clear all

[Closed] Illegal self-reference – why?

Hi,

Max complains about an illegal self-reference if I add the following to a script controller:

TempVol = snapshot $TriggerVolume 
TempVol.name = "TempVol"

delete TempVol

Sometimes it seems to work for a while, bu as soon as I copy the object with the script the error will be thrown 100%. (No matter if I create an individual name based on the object, either, and the snapshot is of a completely separate object.)
There is more going on in the script, but I could narrow it down to the sequence above.
If I remove the “delete” line, the error is gone.

Now I have ways to work around that, I just don’t get why it happens.
As far as I understand it, I tell Max to create a snapshot of a different object, I name it and delete the snapshot. Where is the self-reference?

edit: The name I give to the snapshot doesn’t matter, either.

1 Reply

Hmm… maybe it’s trying to create and delete another snapshot at the same time?