sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Reset Tranformation of component/instance

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 95 Views 3 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.
    • M Offline
      Minne Danhieux
      last edited by

      Hi all,

      First post on this great resource! πŸ˜„

      I have the following problem. I created a component. I created a script loads the component and creates an instance and does scale and translate. So far so good. But now if i wanna ad a second instance based on user input. I look if the componentdefinition is there, create a second instance and scale en translate it.But looks like the size is used of the first instance. everyting is tranforming badly. So my question: How can i be sure that i use the origingal scale of the component i load and aply good scale over and over again.

      Grt,

      M

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        Welcome!

        Be sure to take advantage of thomthom's blogs (he's a moderator here and prolific plugin author.):

        See this one in particular: DEFINITIONS AND INSTANCES IN SKETCHUP

        The issue of component transformations is an oft discussed topic here.

        Have you done a forum search ?

        TIG has answered this question many times, you can do a search on his posts, in this forum, also.

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Sounds like you have transformed the definition, and not the instances.

          A new instance does not inherit the previous. It bases itself entirely on the definition.

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • M Offline
            Minne Danhieux
            last edited by

            Thx Dan for the links. After a search of 15 minut I tend to ask someone. πŸ˜„

            Thomthom: I see what you mean. Thx!

            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