so simple, and yet nobody in the universe ever thought of making a script to do this... see the picture.
the last numbers are exactly the same as their counter position the only different thing is the 3 letters at the beginning. I tried with arrays, no luck, someone please help me I will die.
clearlistener()
allObjects = $*Ptr*
goObjects = $*Chr*
for i = 1 to allObjects.count do
(
select allObjects[i]
$.parent = goObjects[i]
)
Comments (4)
Comment policy
Another way
clearlistener()
allObjects = sort (for p in $GCF* collect p.name)
goObjects = sort (for c in $ABG* collect c.name)
if allObjects.count == goObjects.count do
(
for i in 1 to allObjects.count do in (getnodebyname goObjects[i]) (getnodebyname allObjects[i])
)
You are so close, but...:).Cheers for the bear!
OMG U SAVED MY LIFE MAN !!! THANKS I OWE YOU A BEAR !!!
Try this one
clearlistener()
allObjects = sort (for p in $GCF* collect p.name)
goObjects = sort (for c in $ABG* collect c.name)
if allObjects.count == goObjects.count do
(
for i in 1 to allObjects.count do (getnodebyname goObjects[i]).parent = getnodebyname allObjects[i]
)