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

    How to create a multistep plugin...

    Scheduled Pinned Locked Moved Plugins
    8 Posts 4 Posters 431 Views 4 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.
    • I Offline
      iakram
      last edited by

      Hi everyone,
      Excuse me for being such a noob, I am no programmer and I have never written scripts before,
      However, I'll assume that what I want to make is quite simple...
      I want to develop a script that select each face in the model individually, and then put that face in a group, then latticize that group...

      Any ideas on how to develop such thing?

      Any help would be appreciated, thanks!

      1 Reply Last reply Reply Quote 0
      • mitcorbM Offline
        mitcorb
        last edited by

        Hi, iAkram:
        Can you clarify these questions:
        When you select each face individually, do you wish to accumulate many faces to this group?
        Do you mean to copy these faces in place, or cut and paste them in place to this group? Or not in place?
        Do you mean by latticize that you want to create a wireframe and then give the wires some volume, maybe like a spaceframe truss?

        Because there are tools that make discrete selections in series, and there is at least one tool that uses the term latticize.
        Maybe someone can take your question further if you can explain the above?
        Just trying to help.

        I take the slow, deliberate approach in my aimless wandering.

        1 Reply Last reply Reply Quote 0
        • I Offline
          iakram
          last edited by

          Hi mitcorb, thanks for responding...
          Let me explain this on the attachment 😄
          Yes, what I want to create is something like a spaceframe truss "a curtain wall to be precise" and I am aware of the latticizer plugin, the thing about latticizer is that it only works on coplanar surfaces and my mesh is deformed, so I have to select each surface individually, turn it into a group and latticize it... My question was is there a way to make a script that automatically runs these steps for me, going through all the surfaces?

          Thanks!


          Capture.PNG

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            My LatticeMaker tool is like my Latticeizer but works on the selected facets of any 3d mesh... http://forums.sketchucation.com/viewtopic.php?p=244981#p244981 e.g.
            http://forums.sketchucation.com/download/file.php?id=47911&t=1

            TIG

            1 Reply Last reply Reply Quote 0
            • sdmitchS Offline
              sdmitch
              last edited by

              Do you want a particular size and/or shape for the lattice? Are hidden lines to be considered? Do you want the faces in one group and the lattice in another or all in one? Do you want a material applied to the lattice? Perhaps you could post a model containing a sample of the mesh.

              Nothing is worthless, it can always be used as a bad example.

              http://sdmitch.blogspot.com/

              1 Reply Last reply Reply Quote 0
              • I Offline
                iakram
                last edited by

                Thanks everyone for responding...
                indeed latticemaker was the answer to my problem, thanks TIG for that..
                However, I encountered another problem, it's probably been posted before and I did search for it...
                As per the attachment, I created a smooth mesh and resulted into those faces, in which I want to create a lattice,
                However, I want to make the lattice into four edges, not three... I've been reading in the difference between triangulated and quad faces but I didn't find any successful methodology to make the lattice as such...
                any help would be appreciated, thanks a lot!


                Snip.PNG

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  You have two main choices if you want the windows to have just 4 sides...

                  1. Contrive the glazing panel's mesh so that it has 4 edges that are all on the same plane, and then erase the unneeded diagonal line, then use LatticeMaker or similar on that 4 sided face etc... The resultant pane is now one four sided flat sheet... but of course the frames won't necessarily mesh with the rest of the main surface in which they lie.

                  2. Leave the non-coplanar triangles and make the triangulated panes. Then edit/rework the frames so the diagonal one has 0 width, then erase its geometry and adjust the panes diagonal edges until they meet, and then smooth [or hide] the edges showing the change in plane of the panes' faces - this way the plane is cranked on a diagonal, whilst the frames edges are not coplanar they will remain in line with the main surface...


                  Capture.PNG

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • I Offline
                    iakram
                    last edited by

                    Great! Thanks for the info TIG... It will be taking quite some time though since I'll be have to process each window on it's own 😞 but it should work...

                    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