sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Quick and easy ruby script?

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 321 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      Dark.Horizon
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pout
        last edited by

        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.open

        Something like that i think

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement