Issue Data
|
Issue #23490: defaultDisableOnResetIfLocWasCleared: Cannot call Disable() on a None object
[01/14/2018 - 02:45:19AM] error: Cannot call Disable() on a None object, aborting function call
stack: [ (0021710C)].defaultDisableOnResetIfLocWasCleared.OnCellDetach() - "g:\_F4\Art\Raw\Scripts\defaultDisableOnResetIfLocWasCleared.psc" Line 12 |
There's nothing wrong with the script. Instead, the ref in question is missing a linked x marker, without which the script doesn't work.
Therefore, this is a placed reference issue, not a script issue.
Therefore, this is a placed reference issue, not a script issue.
As it turned out, the offending ref has a DefaultEnableDisableTrigger linked to it that does the job supposed to be done by defaultDisableOnResetIfLocWasCleared. Thus, that latter script is no longer needed and has been removed.
Forget my last comment. This is more complicated than it seemed to be: the marker starts disabled, then gets enabled by the trigger, so the script might need to be used after all to disable it again. This needs more time to investigate, and also to find out what behaviour was actually intended here.
Showing Comments 1 - 3 of 3