I gave up...

so simple, and yet nobody in the universe ever thought of making a script to do this... see the picture.

http://i.imgur.com/UBmuq.jpg

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
barigazy's picture

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])
)

barigazy

barigazy's picture

You are so close,

You are so close, but...:).Cheers for the bear!

barigazy

mindofbrilliance's picture

OMG U SAVED MY LIFE MAN !!!

OMG U SAVED MY LIFE MAN !!! THANKS I OWE YOU A BEAR !!!

barigazy's picture

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]
)

barigazy

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.