• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

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 8 Dec 2012, 11:43

    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
    • D Offline
      Dan Rathbun
      last edited by 8 Dec 2012, 13:54

      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
      • T Offline
        thomthom
        last edited by 8 Dec 2012, 23:58

        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 11 Dec 2012, 21:04

          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
          1 / 1
          • First post
            1/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement