• Login
sketchucation logo sketchucation
  • Login
โš ๏ธ Libfredo 15.4b | Minor release with bugfixes and improvements Update

Hidden Attribute in Dynamic Components

Scheduled Pinned Locked Moved Dynamic Components
sketchup
6 Posts 3 Posters 3.5k 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.
  • N Offline
    nPoika
    last edited by 27 Jun 2010, 11:37

    Hey guys!

    I'm just starting out with Dynamic Components and am slowly working my way through it all. At the moment my small project is working on a brick wall component, that uses the scale tool to extend in either direction, with each brick being actually modeled, as opposed to a texture. My current dilemma is with the 'Hidden' attribute.

    You see, I'd like to make it that if the user has scaled the brick wall to only be one course (for those that don't know, that's one layer of brick and mortar) high that it only shows one course. I was trying to do this by adding an IF statement in the 'Hidden' attribute box, but it doesn't seem to like it! Is there another way around this? Preferably without the use of Ruby (as I'd like to use this component on any PC without worrying about scripts) and if possible without using 'Component Options', although I think that might end up being necessary!

    Thanks in advanced!

    Nathan ๐Ÿ˜„

    1 Reply Last reply Reply Quote 0
    • G Offline
      Gaieus
      last edited by 27 Jun 2010, 12:13

      Hi Nathan and welcome to SCF!

      Not s if I were of any help but under the main SU Discussions we have a dedicated DC Subforum (I have moved your topic here now).

      Hopefully someone more knowledgeable in DC's will soon chime in.

      Gai...

      1 Reply Last reply Reply Quote 0
      • N Offline
        nPoika
        last edited by 27 Jun 2010, 12:17

        Oh thanks! Sorry for the mishap! ๐Ÿ˜„

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gaieus
          last edited by 27 Jun 2010, 12:54

          No problem at all - things may appear a bit cluttered for new members here I believe.
          ๐Ÿ˜‰

          Gai...

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by 27 Jun 2010, 17:16

            Nathan,

            I made a DC of shake siding that alternates the visibility of the 1/2-width shingle. I don't think it's the best example, but maybe it will give you some better ideas.

            You can download it in the following topic:

            http://forums.sketchucation.com/viewtopic.php?f=289&t=18738&hilit=shake

            Hi

            1 Reply Last reply Reply Quote 0
            • J Offline
              Jim
              last edited by 27 Jun 2010, 17:33

              On a second reading... it seems like you want to use the built-in COPIES attribute.

              So if the LenZ of the Component is at or below a certain value (min height of a course), then the number of copies of the coarse is 0.

              Otherwise, the value of COPIES is equal to (something like) the LenZ of the component divided by the height of a single coarse.

              Found this model on the 3d Warehouse:

              Error 404 (Not Found)!!1

              favicon

              (sketchup.google.com)

              Hi

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement