diff options
Diffstat (limited to 'Items.c4d/Utility.c4d/Script.c')
| -rw-r--r-- | Items.c4d/Utility.c4d/Script.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Items.c4d/Utility.c4d/Script.c b/Items.c4d/Utility.c4d/Script.c index 48cdc7c..6e44f7e 100644 --- a/Items.c4d/Utility.c4d/Script.c +++ b/Items.c4d/Utility.c4d/Script.c @@ -22,7 +22,7 @@ func AttachMenu(object caller, bool allowFloating) var targets = FindObjects(Find_AtPoint(), Find_Exclude(caller), Find_Exclude(this), AttachObjectCondition(caller)); if(allowFloating) { - targets[GetLength(targets)] = [0, "$AttachWall$", GetID()]; + targets[] = [0, "$AttachWall$", GetID()]; } return caller->~CreateSelectionMenu("AttachEntry", targets, GetID(), "$SelectTarget$", this); } @@ -47,7 +47,7 @@ func Attach(object target) // TODO: maybe use scripted Attach instead; check if { // WARNING: needs an action with the name "Attach", the Procedure "ATTACH" and an AbortCall of "Detached" SetVertex(AttachVertex(), VTX_X, GetX(target) - GetX() + GetVertex(0, VTX_X, target), this, VTX_SetPermanentUpd); SetVertex(AttachVertex(), VTX_Y, GetY(target) - GetY() + 5 + GetVertex(0, VTX_Y, target), this, VTX_SetPermanentUpd); - + SetAction("Attach", target); SetActionData(AttachVertex() << 8); } @@ -95,14 +95,14 @@ func GetRetrievableIDs(bool produce) { if(GetIndexOf(id, IDs) == -1) { - IDs[GetLength(IDs)] = id; + IDs[] = id; } } } - + if(produce) { - produceIDs[GetLength(produceIDs)] = [line->GetLineEnd(this), line->GetRetrievableObjects(this, true)]; + produceIDs[] = [line->GetLineEnd(this), line->GetRetrievableObjects(this, true)]; } } if(produce) @@ -121,13 +121,13 @@ func GetRetrievableIDs(bool produce) { if(GetIndexOf(id, parts) == -1 && GetIndexOf(id, IDs) == -1) { - part[GetLength(part)] = id; - parts[GetLength(parts)] = id; + part[] = id; + parts[] = id; } } if(GetLength(part) > 0) { - ret[GetLength(ret)] = [produceIDs[i][0], part]; + ret[] = [produceIDs[i][0], part]; } } } @@ -247,7 +247,7 @@ func GetSendableIDs(bool production) { if(GetIndexOf(GetID(obj), IDs) == -1) { - IDs[GetLength(IDs)] = GetID(obj); + IDs[] = GetID(obj); } } } @@ -261,7 +261,7 @@ func GetSendableIDs(bool production) { if(GetIndexOf(id, IDs) == -1) { - ret[GetLength(ret)] = id; + ret[] = id; } } } |
