diff options
| -rw-r--r-- | SelectMark.c4d/Script.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/SelectMark.c4d/Script.c b/SelectMark.c4d/Script.c index 84080ce..f3f8990 100644 --- a/SelectMark.c4d/Script.c +++ b/SelectMark.c4d/Script.c @@ -1,4 +1,4 @@ -#strict 2 +#strict 3 local attachEffect; @@ -41,11 +41,11 @@ func MarkObject(object obj, int time, bool noShow) { if(attachEffect && attachEffect[0] != obj) { - RemoveEffect(0, attachEffect[0], attachEffect[1]); + RemoveEffect(nil, attachEffect[0], attachEffect[1]); } if(!attachEffect) { - AddEffect("SelectionMarkAttach", obj, 1, 1, this, 0, time); + AddEffect("SelectionMarkAttach", obj, 1, 1, this, nil, time); } } return this; @@ -79,15 +79,15 @@ func FxSelectionMarkAttachTimer(object target, int effectNumber, int effectTime) func FxSelectionMarkAttachStop(object target, int effectNumber) { - attachEffect = 0; + attachEffect = nil; } func Primary() { SetGraphics(); - SetGraphics(0, this, GetID(), 1, GFXOV_MODE_Action, "UpperRight"); - SetGraphics(0, this, GetID(), 2, GFXOV_MODE_Action, "LowerLeft"); - SetGraphics(0, this, GetID(), 3, GFXOV_MODE_Action, "LowerRight"); + SetGraphics(nil, this, GetID(), 1, GFXOV_MODE_Action, "UpperRight"); + SetGraphics(nil, this, GetID(), 2, GFXOV_MODE_Action, "LowerLeft"); + SetGraphics(nil, this, GetID(), 3, GFXOV_MODE_Action, "LowerRight"); return this; } |
