sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Instance.move!() and instance.transform!()

    scheduled pinned locked moved Developers' Forum
    2 Posts 2 Posters 125 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • M Offline
      MartinRinehart
      last edited by

      There are two important differences between move!() and transform!().

      The first, which is documented, is that move!() does not record changes on the undo stack.

      The second, which is not documented, is that move!() does not invalidate the view (so does not force immediate redraw).

      This is well-designed and correctly implemented, making move!() ideally suited for use in animations.

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      one-reply-to-this-post last-reply-time reply quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Yes, .move! is great for animations for those reasons. It should not be compared to .transform! though, as they are dissimilar methods. It should be compared only to .transformation = . As that is what the .move! method is acutally doing.

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        one-reply-to-this-post last-reply-time 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