sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Colour to the pushhpull part

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 165 Views 2 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.
    • D Offline
      DNHG
      last edited by

      Hello,
      With Ruby I have drawn a square and told it to extrude (pushpull)
      Then I added colour to the face, and I also wan to colour the extruded part... How do I do that?
      DN

      1 Reply Last reply Reply Quote 0
      • D Offline
        DNHG
        last edited by

        You can close this question...

        face.material = "colour"
        before you
        face.pushpull "distance"

        It is just the order that things happen in...

        Thanks
        DNHG

        @dnhg said:

        Hello,
        With Ruby I have drawn a square and told it to extrude (pushpull)
        Then I added colour to the face, and I also wan to colour the extruded part... How do I do that?
        DN

        1 Reply Last reply Reply Quote 0
        • jolranJ Offline
          jolran
          last edited by

          Yeah that sounds right.

          Also (if your putting together some code) be aware that pushpulled_face = face.pushpull "distance" will return nil.

          So to get newly pushpulled faces you have to create 2 arrays. 1: with faces Before pushpull and 2: after pushpull, then subtract array1 from array2.
          (TIG has some code posted in detail for this, lying around in the developper section somewhere...)

          Obviously if you have the geometry grouped this process will be faster you since dont have to traverse the whole model.

          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