Quick and easy ruby script?
-
Hello there. I have a quick question about a ruby script that I need in order to continue with my animation program.
All I need to to do is copy the names and locations of all of the different groups, paste the names into a text file, and copy all of the bone names and locations, (the Text tool in SU, not the 3D Text tool either) and paste it into a textfile (not really a .txt file, but a .sua file).
How could I easily do this?
-
so if i understand correct you want a file with on each line:
groupname1-location1
groupname2-location2?
If so I think you need to:
loop all SU entities
check if entity is group
if so:
get the name
get the location info
store those in a array [[name,location],[name,location],[name,location]] or hash
end of loop
then put the array in a file with File.openSomething like that i think
Advertisement