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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement