Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. If anyone can figure out how to do this, that would be awesome...

If anyone can figure out how to do this, that would be awesome...

Scheduled Pinned Locked Moved Help and Support
6 Posts 3 Posters 1.6k Views 2 Watching
  • 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.
  • RyanAndChadR Offline
    RyanAndChadR Offline
    RyanAndChad
    wrote on last edited by
    #1

    Ok so let's say that you have two objects. These objects are duplicated using "spawn on object." So now we have two new objects (I'll call them object A and object B ). So... How do we get Object A to target Object B and do something like "weld attach" to Object B. Also, this would have to be done without also attaching to the original object that Object B was created from.

    If anyone can figure this out, that would be great. If we had a way to create a tag and tag/untag objects while our program is running, we would be able to do this easily.

    Jack de WildeJ 1 Reply Last reply
    0
    • RyanAndChadR RyanAndChad

      Ok so let's say that you have two objects. These objects are duplicated using "spawn on object." So now we have two new objects (I'll call them object A and object B ). So... How do we get Object A to target Object B and do something like "weld attach" to Object B. Also, this would have to be done without also attaching to the original object that Object B was created from.

      If anyone can figure this out, that would be great. If we had a way to create a tag and tag/untag objects while our program is running, we would be able to do this easily.

      Jack de WildeJ Offline
      Jack de WildeJ Offline
      Jack de Wilde
      wrote on last edited by
      #2

      @DomiNation Dynamic tags would be good, but right now the easiest way is to have the spawned object in the group, and then set an attribute to an ID, then the other object uses a for each loop with the group selected and gets the attribute with the group selected. If the ID is equal to the one you want to connect to, run the weld attach with the group selected. It's a bit hard to explain, I can make an example project if you want.

      RyanAndChadR 1 Reply Last reply
      0
      • Jack de WildeJ Jack de Wilde

        @DomiNation Dynamic tags would be good, but right now the easiest way is to have the spawned object in the group, and then set an attribute to an ID, then the other object uses a for each loop with the group selected and gets the attribute with the group selected. If the ID is equal to the one you want to connect to, run the weld attach with the group selected. It's a bit hard to explain, I can make an example project if you want.

        RyanAndChadR Offline
        RyanAndChadR Offline
        RyanAndChad
        wrote on last edited by
        #3

        @Jack8680 so it is possible to target an object in a tag group based off attributes? An example of this would be awesome :)

        Jack de WildeJ 1 Reply Last reply
        0
        • RyanAndChadR RyanAndChad

          @Jack8680 so it is possible to target an object in a tag group based off attributes? An example of this would be awesome :)

          Jack de WildeJ Offline
          Jack de WildeJ Offline
          Jack de Wilde
          wrote on last edited by
          #4

          @DomiNation here's an example of selecting a spawned object by attribute: http://bit.ly/2iD1cKA
          The problem with this is that it loops through every single object in the tag to get the ID, which can cause lag if you have loads of those objects. You can only select one tag in weld attach though, so the behaviours would have to be in one of the objects that attaches.

          RyanAndChadR 1 Reply Last reply
          0
          • P Offline
            P Offline
            Perpetual Games
            wrote on last edited by
            #5

            Sorry I would help you out but I'm not very good with coding 😅 But I am sort of after the same thing you are so I might find it out eventually 👍

            1 Reply Last reply
            0
            • Jack de WildeJ Jack de Wilde

              @DomiNation here's an example of selecting a spawned object by attribute: http://bit.ly/2iD1cKA
              The problem with this is that it loops through every single object in the tag to get the ID, which can cause lag if you have loads of those objects. You can only select one tag in weld attach though, so the behaviours would have to be in one of the objects that attaches.

              RyanAndChadR Offline
              RyanAndChadR Offline
              RyanAndChad
              wrote on last edited by
              #6

              @Jack8680 Thank you! This should work well for my project :)

              1 Reply Last reply
              0

              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 Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Search