sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    You Decide Competition!

    Scheduled Pinned Locked Moved SketchyPhysics
    51 Posts 8 Posters 4.5k Views 8 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.
    • W Offline
      Wacov
      last edited by

      Okay... that will be useful, but now I'm wondering how you changed the evaluation group to something outside the group it was written in πŸ˜„

      Is that what the first part of the script is for?

      Also, is it possible to change the default SU material of an object using script? Like when you paint a group, any surfaces within with the default paint will change.

      http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

      1 Reply Last reply Reply Quote 0
      • B Offline
        BTM
        last edited by

        You can do that through styles, or when using the paint bucket on a default coloured face, hold shift.

        1 Reply Last reply Reply Quote 0
        • W Offline
          Wacov
          last edited by

          No, it has to be through script. There must be a way, because plugins are able to change the material...

          http://sketchup.google.com/3dwarehouse/cldetails?mid=3096a836877fb9af6cd8ad826e9017b8&prevstart=0

          1 Reply Last reply Reply Quote 0
          • C Offline
            CPhillips
            last edited by

            @wacov said:

            Okay... that will be useful, but now I'm wondering how you changed the evaluation group to something outside the group it was written in πŸ˜„

            Is that what the first part of the script is for?

            Also, is it possible to change the default SU material of an object using script? Like when you paint a group, any surfaces within with the default paint will change.

            I dont know what you mean. I didnt exactly change the evaluation group. "$curEvalGroup" is the group that the code is running on.

            You know how you can make one object in SU and make it a component then copy it. Now when you edit one all of them change. That is because there is one object "definition" and 0 or more "instances" of that object. Every group is actually a instance.

            $curEvalGroup.definition.entities
            

            Given an instance ($curEvalGroup) get its definition and then get the entities in that definition.

            The first part of the script just gets the x,y,z location of the body.

            BTW "$" means global varible in Ruby. You can use the $curEvalGroup but do not and I mean do not try to make new ones. You could mess things up pretty easy.

            1 Reply Last reply Reply Quote 0
            • H Offline
              hobbnob
              last edited by

              physicsguy you didnt' tell me your challenge decision. i'm using the default option that i decided on a few weeks ago in case of such an event. in future all group decisions for the sp challenges are banned.

              My WIP Thread:Here

              1 Reply Last reply Reply Quote 0
              • B Offline
                BTM
                last edited by

                ...Just pick whatever one was voted for the most on the other thread. I'd say that would be the best solution.

                1 Reply Last reply Reply Quote 0
                • H Offline
                  hobbnob
                  last edited by

                  he'd created loads of polls and voting places dotted around, theres no way i'm goign through all of that, i might as well tell you now, the next challenge will be for a motorcycle.

                  My WIP Thread:Here

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BTM
                    last edited by

                    😐 That's pretty basic and simple...
                    ... I'd still go for animated character. I'd already started, thinking it was the probable topic, as it seems to be on the top of the forum poll, and the only other poll I could find is one on the warehouse; but that wouldn't change it still.

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      Physicsguy1
                      last edited by

                      What The?!!!!!!!!!???????? its an animated character, now give them what they voted for. motorcycle is too relevant to the desert vehicle. we don't need another vehicle

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        pr0
                        last edited by

                        hey guys, what about something like transformable architecture. i don't know if this will be too difficult to pull off, but its worth a try.

                        here are some links πŸ˜„

                        http://www.gatewaycoalition.org/files/patents/site/graphics/hoberman_1.gif

                        http://www.gatewaycoalition.org/files/patents/site/graphics/hoberman_2.jpg

                        http://www.gatewaycoalition.org/files/patents/site/graphics/hoberman_3.gif

                        http://i.treehugger.com/images/2007/10/24/chuck28.jpg

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

                        Advertisement