sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    DC - The Switch Function (SET)

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    1 Posts 1 Posters 720 Views
    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.
    • J Offline
      jamronlol
      last edited by

      You know the Delivery Truck in SketchUp Sampler.
      The rear can change.
      Do you Know how to do that?
      No
      Well I can give you the way!
      😍

      1. Make a shape that may change i.e. Interchangeable text. Make it a component. Call it set1
      2. Make a different one in it's place. Call it set2
      3. Combine them together. Make sure set2 is hidden. Call it set
      4. On component attributes, set must have the "Show" command on it. Type 1 on the next one
      5. The script for each component should be
        HIDDEN | =IF(set!Show=1,0,1) (1,2,.......N)
        ONCLICK | SET("set!show",2) (2,3.....1) Important!! The last one must have 1 or it won't work
      6. Interact and it should change!

      Here is an example


      set function.skp

      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