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. Get Position Set to a Tag, What's happening?

Get Position Set to a Tag, What's happening?

Scheduled Pinned Locked Moved Help and Support
17 Posts 3 Posters 1.4k 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.
  • D Deeeds

    @Aidan-Oxley using your theory, what should come out of this... x on the left, y on the right...

    100, 1
    112, 1
    124, 1

    106, 12
    118, 12
    130, 12

    112, 23
    124, 23
    136, 23

    Aidan_FireA Offline
    Aidan_FireA Offline
    Aidan_Fire
    wrote on last edited by Aidan_Fire
    #8

    @Deeeds The average of those 9 values is 118, 12
    I’ll look at what you said after that in a while.

    D 1 Reply Last reply
    0
    • Aidan_FireA Aidan_Fire

      @Deeeds The average of those 9 values is 118, 12
      I’ll look at what you said after that in a while.

      D Offline
      D Offline
      Deeeds
      wrote on last edited by
      #9

      @Aidan-Oxley So to be absolutely clear,

      Get Position on a Tag iterates over all members of a tag.

      Right?

      Aidan_FireA 1 Reply Last reply
      0
      • D Deeeds

        @Aidan-Oxley So to be absolutely clear,

        Get Position on a Tag iterates over all members of a tag.

        Right?

        Aidan_FireA Offline
        Aidan_FireA Offline
        Aidan_Fire
        wrote on last edited by
        #10

        @Deeeds Get Position on a tag will get the average position of ALL objects in that tag. Unless you’re using something like a for each loop running over the top of the Get Position, in that case it will get the position of each one I would expect, all in a super short time due to how loops work. You can also use Collided with tag over the top of Get Position of tag, in that case it will get the position of the object it collided with.
        But once more, if the Get Position behaviour has nothing like this above it, it will just get the average position of everything in the tag.

        D 1 Reply Last reply
        0
        • D Deeeds

          @Aidan-Oxley

          Given your propensity for maths...

          How do I take an incoming stream of numbers between the ranges of -20 to +20, and always output a number of 100 for values between -10 and +10, but scale that output downwards for numbers between -10 to -20, and 10 to 20?

          Here's the tricky part, without using a conditional, only math.

          I believe this is called "flooring", but I could have that wrong, as google isn't helping me.

          Nor is it my friend.

          Aidan_FireA Offline
          Aidan_FireA Offline
          Aidan_Fire
          wrote on last edited by
          #11

          @Deeeds With what you said about your values between -20 and +20, I can’t imagine any way possible without having at least two separate conditions, one being that the value is between - and + 10, and the other condition for if that condition is not met.

          1 Reply Last reply
          0
          • D Deeeds

            @Aidan-Oxley

            Given your propensity for maths...

            How do I take an incoming stream of numbers between the ranges of -20 to +20, and always output a number of 100 for values between -10 and +10, but scale that output downwards for numbers between -10 to -20, and 10 to 20?

            Here's the tricky part, without using a conditional, only math.

            I believe this is called "flooring", but I could have that wrong, as google isn't helping me.

            Nor is it my friend.

            Aidan_FireA Offline
            Aidan_FireA Offline
            Aidan_Fire
            wrote on last edited by
            #12

            @Deeeds Here you go have an example project:
            http://bit.ly/2Ajwrnx

            1 Reply Last reply
            0
            • Aidan_FireA Aidan_Fire

              @Deeeds Get Position on a tag will get the average position of ALL objects in that tag. Unless you’re using something like a for each loop running over the top of the Get Position, in that case it will get the position of each one I would expect, all in a super short time due to how loops work. You can also use Collided with tag over the top of Get Position of tag, in that case it will get the position of the object it collided with.
              But once more, if the Get Position behaviour has nothing like this above it, it will just get the average position of everything in the tag.

              D Offline
              D Offline
              Deeeds
              wrote on last edited by
              #13

              @Aidan-Oxley The reason I'm asking:

              I think this is poor design.

              It is my opinion the For Loop Operating on a Tag should output three things, not two.

              As of now the loops output their Index and their Count.

              The For Each Loop should also output Each.

              So the output choices would be:

              Index, Count, Each

              Then you can, quite logically and naturally, do this:

              Get Position Each:

              Get Rotation Each:

              Set Rotation Each:

              Makes a lot more sense than repurposing Get Position Tag from a catch all and averaging to a constraint of itself to the context of a For Loop that's specifically referencing each instance it finds that meets the criteria of For Each.

              And, it's right their in the name of the operation: For EACH!

              And, further, I think this is the right preparatory move towards hyperPad having object references, prefabs (types) and instancing.

              Aidan_FireA iTap DevelopmentI 2 Replies Last reply
              0
              • D Deeeds

                @Aidan-Oxley The reason I'm asking:

                I think this is poor design.

                It is my opinion the For Loop Operating on a Tag should output three things, not two.

                As of now the loops output their Index and their Count.

                The For Each Loop should also output Each.

                So the output choices would be:

                Index, Count, Each

                Then you can, quite logically and naturally, do this:

                Get Position Each:

                Get Rotation Each:

                Set Rotation Each:

                Makes a lot more sense than repurposing Get Position Tag from a catch all and averaging to a constraint of itself to the context of a For Loop that's specifically referencing each instance it finds that meets the criteria of For Each.

                And, it's right their in the name of the operation: For EACH!

                And, further, I think this is the right preparatory move towards hyperPad having object references, prefabs (types) and instancing.

                Aidan_FireA Offline
                Aidan_FireA Offline
                Aidan_Fire
                wrote on last edited by
                #14

                @Deeeds I don’t really understand what you mean. When you run a For Each Loop above a Get Position, I’m pretty sure it will get the individual position of every object in the tag one by one, not the average.

                iTap DevelopmentI 1 Reply Last reply
                0
                • Aidan_FireA Aidan_Fire

                  @Deeeds I don’t really understand what you mean. When you run a For Each Loop above a Get Position, I’m pretty sure it will get the individual position of every object in the tag one by one, not the average.

                  iTap DevelopmentI Offline
                  iTap DevelopmentI Offline
                  iTap Development
                  wrote on last edited by
                  #15

                  @Aidan-Oxley yes that’s how it works. I posted a project for him yesterday doing just that.

                  1 Reply Last reply
                  0
                  • D Deeeds

                    @Aidan-Oxley The reason I'm asking:

                    I think this is poor design.

                    It is my opinion the For Loop Operating on a Tag should output three things, not two.

                    As of now the loops output their Index and their Count.

                    The For Each Loop should also output Each.

                    So the output choices would be:

                    Index, Count, Each

                    Then you can, quite logically and naturally, do this:

                    Get Position Each:

                    Get Rotation Each:

                    Set Rotation Each:

                    Makes a lot more sense than repurposing Get Position Tag from a catch all and averaging to a constraint of itself to the context of a For Loop that's specifically referencing each instance it finds that meets the criteria of For Each.

                    And, it's right their in the name of the operation: For EACH!

                    And, further, I think this is the right preparatory move towards hyperPad having object references, prefabs (types) and instancing.

                    iTap DevelopmentI Offline
                    iTap DevelopmentI Offline
                    iTap Development
                    wrote on last edited by
                    #16

                    @Deeeds you can already easily do this:
                    Get Position Each:

                    Get Rotation Each:

                    Set Rotation Each:

                    D 1 Reply Last reply
                    0
                    • iTap DevelopmentI iTap Development

                      @Deeeds you can already easily do this:
                      Get Position Each:

                      Get Rotation Each:

                      Set Rotation Each:

                      D Offline
                      D Offline
                      Deeeds
                      wrote on last edited by
                      #17

                      @iTap-Development @Aidan-Oxley

                      Forest for the Trees.

                      Trees for the Wood.

                      I'm suggesting a better UI and UX that's more consistent, easier to grok and, most importantly, discoverable.

                      The current system requires rote learning and is a peculiar repurposing of an iterator within an iterator that no longer iterates because it's in an iterator.

                      But it's not as bad as how the If Else is created, I'll grant you that!

                      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