sketchucation logo sketchucation
    • Login
    1. Home
    2. kirill2008
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 11
    • Posts 125
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Pausing for Sketchup to update

      @designforlife said:

      Can anyone explain the correct use of view.invalidate and/or start_timer?

      You may try to substitute "while...end" or "for...end" etc control structures by timer. The funny thing is that maybe it is not necessary to put 'Sketchup.active_model.active_view.invalidate' line inside the timer.

      ` wait_time=(<suspend period>)
      times=(how many times you want to repeat <some code>)
      timer_id=UI.start_timer(wait_time,true) {
      <some code> # put some geometry to active_model
      times -=1 # decrement times to be able to stop timer
      Sketchup.active_model.active_view.invalidate

      do not forget to stop timer

      timer_id=UI.stop_timer timer_id if times==0
      }`

      I noticed, that visual results of <some code> processing appears even without view.invalidate. Note, that <some code> appears to work a kind of 'transparent' way (you may zoom, pan, rotate view and even launch other commands during the timer processing).Such behaviour indicates, that during <suspend period> all possible events (mouse events, key stroke events and so on) rise and you can handle them.
      Hope that helps.

      posted in Developers' Forum
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @utiler said:

      See the attached video example and finished result.
      Copy an object a given distance, scale it by 0.6 and rotate it 40 degrees AND DIVIDE BY 4.

      Can't be too hard couldn't it?

      That's cool πŸ‘ It is a step to complex path+profile modeling tool, I guess. Looks like, the final destination is to set some 'key' positions along the path and apply some transformations (move, rotate, scale) to the profile at each 'key' position. Intermediate steps transformations (between key positions) will be interpolated between 'key' transformations.
      Some 3d modelling programms have already implemented similar tools. It would be great to implement such tool for Sketchup too. Don't know how much time it may take.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @unknownuser said:

      Would it be possible to also attach the Sketchup file so I can try out the same file as you are using.

      interactive tests file
      File with the model, that appears in the demo video of ver. 1.8.
      Unfortunately interactivity enabled only in run-time (untill skp file is not closed) and I don't know yet how to save interaction data to skp file (maybe it's not possible at all). So if you want to play with initial faces, then it is necessary to make new blended object.

      Ver. 1.8. does not support interaction with curves yet, because it is difficult to get the curve object from the Sketchup.active_model... The point is that active_model contains no curves (curve is just a 'conceptual entity' "all circles, arcs, and arbitrary curves are really just edges that are bound together in sequence"). So it's necessary to perform some tricky things to obtain the certain curve, that you need.
      Edges also behave strange: moving of the edge or moving of the edge vertex does not envoke onChangeEntity event handler πŸ˜•. Only if you change some properties of the edge (for example layer or smoothness), then modify event rises and onChangeEntity envokes.

      [flash=425,344:2o85cxyz]http://www.youtube.com/v/ZgOUZR3Z2xE&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:2o85cxyz]

      So ver. 1.8. supports interaction only between 2 faces and face+construction point. I'm not sure if I can solve myself edge and curve problems.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Now the implementation of interaction is in progress (it is not yet stable so ver 1.8 will appear a little bit later). I think that interaction ability will solve (more or less) the inside out problem. I mean it will be easier to fix it by moving, rotating and/or flipping one of the initial faces and the result mesh or set of intermediate faces/curves will refresh automatically. This will be the step towards path processing also.
      [flash=425,344:f7q8z0yv]http://www.youtube.com/v/IYS69O6idg8&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:f7q8z0yv]

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Olishea, glad to hear sublend works on mac πŸ‘ (I was just going to ask someone to try it on mac). Thank's for testing and feedback and happy blendings πŸ˜„
      Ofcourse it's not my achievement πŸ˜„ , it's just because ruby is cross platform.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @unknownuser said:

      Not sure how you are fixing the inside out problem. I can't tell exactly what you are doing. Could you please try again?
      Ken

      I'm flipping the face normal (lower one).

      @ben ritter said:

      Is there a bug with the blending of colors, I can't seem to get that to work?

      Maybe. Note that color blending enabled only for 2 faces yet (does not work for curves, edges and construction points) and both face front material and face back material has to differ from default one. Hope that helps.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @utiler said:

      Have you thought about adding a path function to this script?

      Yes, I think about it almost every day (and some times night πŸ˜„ too). I want to add a path processing very much, but it looks like such task is less obvious than already implemented algorithm. And maybe it's better to make a brand-new plugin with path processing, because it will work the other way than existing plugin.
      Ver. 1.7. demo video, shows blending between face and construction point and context menu "Blend" command usage.
      [flash=425,344:269yb5p5]http://www.youtube.com/v/-dfMofxc3pw&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:269yb5p5]

      I don't know yet how to implement custumization of context menu items, so "Blend" command appears always when more than 1 object is selected

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Ver 1.6 demo videos:
      Filtration capabilities video:
      [flash=425,344:17c3bm6v]http://www.youtube.com/v/Pml0gn-5fuY&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:17c3bm6v]

      Blending between different types of entities demo:
      [flash=425,344:17c3bm6v]http://www.youtube.com/v/0gchAp7Yje8&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:17c3bm6v]

      Fixing inside out problem variant:
      [flash=425,344:17c3bm6v]http://www.youtube.com/v/6PvRKfzm-g4&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:17c3bm6v]
      As cosycat mentioned:

      @cosycat said:

      the result (v6) does depend on the order in which the points are drawn

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Guys, I don't know yet how to prevent skin (mesh) turning inside out 😞 The point is that script processes vertices with corresponding indices: so maybe flipping normal or 180 degrees rotation (or 90) of one of 2 faces may help.
      Missing triangles (they vanished after color blending feature addition) have come back now πŸ˜„ (ver. 1.6)
      Error messages kind of "undefined method `back_material' for... " debugged (I guess πŸ˜„ ).

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @tomot said:

      I don't want you to misunderstand. This is not only related to the "y" shape. Other shapes have produced the same inconsistent results in SU 7.
      another example:
      make 2 identical closed shapes, scale one larger, apply bend, same code error occurs

      Looks like it is SU7 issue... SU6 processes correctly:
      [flash=425,344:1p1mvbbo]http://www.youtube.com/v/1D8WUYsS9hw&hl=ru&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:1p1mvbbo]
      When processing faces it is necessary to select them by single click (not a fence).

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Color blending demo video (for Daniel S πŸ˜‰ 😞
      [flash=425,344:1ki2zgl4]http://www.youtube.com/v/CqqRssCqONk&hl=ru&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"[/flash:1ki2zgl4]

      cosycat, please try ver. 1.5. I tried to solve the problem of missing mesh pieces.

      tomot, I'll try to find out, what's the problem with rotated Y's...

      And speaking about the 3'd curve (the path): looks like, it demands a kind of major refactoring πŸ˜• It is more complex task than I thought and it will take a little time...

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Little bonus video:
      [flash=480,385:2yb89gf7]http://www.youtube.com/p/910E7CBB59CD05F8&amp;hl=ru&amp;fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"[/flash:2yb89gf7]
      Ver. 1.4 is able to process more or less complex geometry.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      Hi, Bob.
      Thank's a lot for your feedback, it really helps to improve the script. πŸ‘

      @watkins said:

      Dear Kirill,

      • that the 'undo' doesn't work with your plugin, i.e., I cannot revert back to the drawing before your plugin is used, and

      Well, actually 'undo' works, but yes it sometimes (big steps count value and/or big segments count of initial curves) cannot revert back drawing.
      undodemo.gif
      Animation shows '<Ctrl>+z' combination pressed effect.
      Now (ver 1.3) all steps of Blend command joined to the single command and can be undone as one single action.

      @watkins said:

      • your plugin creates lines (steps) which are outside the group which contains the surface. One has to hide the group and then delete the lines. Is this how the plugin is meant to work?

      Yes, they are supposed to be separated. But now (ver 1.3) I decided to put curves to another separate group.

      @jclements said:

      If you can get two objects to follow and blend along a third, curve (path) as was suggested above, then we've got a nice, easy-to-use taper tool.

      Well, the final destination is an interactive blended object, that consists of 2 initial curves/faces and maybe a path. Interacting with initial curves and/or path has to affect the whole object. Sounds like a kind of challenge for me...

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Create 3d mesh from construction points... ver 1.3.

      @runnerpack said:

      Isn't Ruby great? πŸ‘

      I agree! As for me, I'm going to hang Matsumoto's portrait at home. Yukihiro is my hero. The only problem is to find his high resolution photo.
      As a newbie to ruby, I must say I'm surprised a lot (almost shocked) that almost everything I code works (more or less).
      Thank's for sample code.

      Regards.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Blend ver 1.12.

      @watkins said:

      Can you use this plugin with Bezier lines? I assume that both curves must have the same number of segments.
      Bob

      I'm not sure about Bezier lines, but you can use plugin with freehand lines regardless of segments count. It is also possible to select an arc curve and freehand curve, because ArcCurve is a subclass of Curve.

      @watkins said:

      From your video example, the step count does not seem to correspond to the number of lines drawn.

      Thank's. Bug is fixed check ver. 1.1. for update.

      @watkins said:

      I note that the end-points for the new lines are terminated on the X-Y plane.

      Well, actually it's not exactly such a way. Points for the new curves are at vectors between corresponding vertices of 2 initial curves (refer to the attachment).

      @watkins said:

      Would it be possible to modify the script so that the end-points are determined by a third, curved line connecting the end-points of the boundary lines.

      Yes, it is possible for sure πŸ˜„ I'll try to implement such feature.


      blend.JPG

      posted in Plugins
      K
      kirill2008
    • [Plugin] Blend ver 1.12.

      This plugin became obsolete but you can find all its functionality in 'Blend' tool of 'LSS Toolbar 2.0' extension. It is still only a beta version though. This particular tool works more or less stable. Find out more at http://sketchucation.com/forums/viewtopic.php?f=323&t=47399

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Create 3d mesh from construction points... ver 1.3.

      @mitcorb said:

      By the way, you now have two threads for this plugin, version 1.0 and version 1.1
      mitcorb

      OK, I see πŸ˜• . I'll update the script version within initial thread instead of posting new one next time.

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Create 3d mesh from construction points... ver 1.3.

      You mean to make a kind of NURBS surface or so?
      I think it's too sophisticated for me πŸ˜• but surely it's possible to carry out though πŸ˜‰
      BTW can anyone post a sample ruby code shows how to make subclass of SU Point3d class?

      posted in Plugins
      K
      kirill2008
    • [Plugin] Create 3d mesh from construction points... ver 1.3.

      This plugin became obsolete but you can find all its functionality in 'Make 3D Mesh' tool of 'LSS Toolbar 2.0' extension. It is still only a beta version though. Find out more at http://sketchucation.com/forums/viewtopic.php?f=323&t=47399

      posted in Plugins
      K
      kirill2008
    • RE: [Plugin] Create 3d mesh from construction points... ver 1.0

      @mitcorb said:

      That is what is so good about this forum.

      I agreee. This forum keeps very friendly atmosphere as well and it's great πŸ‘ and positive.

      posted in Plugins
      K
      kirill2008
    • 1 / 1