sketchucation logo sketchucation
    • Login
    1. Home
    2. Pixero
    3. Topics
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 291
    • Posts 2,394
    • Groups 4

    Topics

    • PixeroP

      Web Dialog - how to

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      16
      0 Votes
      16 Posts
      2k Views
      PixeroP
      Thanks Jim and Todd. Really appreciated. Finally back on track... Don't worry, I'll probably be back with more stupid questions...
    • PixeroP

      Changing default values?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      708 Views
      PixeroP
      Okay, thanks for your reply. I was actually thinking of writing a web dialog for this script at a later stage. Just thought I'd test some functionality first without it. I guess I'll have to dive into the sea of web dialogs then...
    • PixeroP

      Current time of animation?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      1k Views
      PixeroP
      Wouldn't that work only for realtime play? I'm looking for a way to step through an animation frame by frame. (not scenes/pages) I want to be able to access certain frames to fix possible errors.
    • PixeroP

      Look around tool in ruby?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      1k Views
      J
      You need to use camera.set. The vector from the target to the eye is the direction. m=Sketchup.active_model view=m.active_view camera=view.camera v1 = (camera.target - camera.eye).normalize v2 = camera.direction.normalize p v1 == v2
    • PixeroP

      Ruby and Open GL

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      1k Views
      A
      But seems to be supported by some SDK programming, am I right? I thought you mean a Ruby-only approach. azuby
    • PixeroP

      What is wrong with this script?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      2k Views
      PixeroP
      Got it working! Thanks for the help. Read more here: http://www.sketchucation.com/scf/viewtopic.php?f=9&t=1986
    • PixeroP

      Key sequence in ruby

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      2k Views
      T
      Oops. Command = 1048576 Alt = 524288 Control = 262144 The Command key, also known as the "apple" key, shown as a ⌘ in the Doc, is the Mac equivalent to the PC's CONTROL key. The control key on a Mac isn't used that often. The ALT key is also named the Option key. Todd
    • PixeroP

      Keycode with onKeyUp question

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      988 Views
      PixeroP
      Thanks! I'll try that.
    • PixeroP

      Align points

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      6k Views
      PixeroP
      Thanks Azuby, I didnt know that. But I am a noob on Ruby. I've never seen it in the ruby docs though. Since I've seen both @ and $ used, I assumed you could use either. In my noobiness I though the @ came from @-atlast. Rick W, thanks I tried it but it still doesnt work. Could you please take a look at my script to see where I go wrong? Maybe try my script with a rectangle and set Align to custom and some custom value. jsAlign.zip
    • PixeroP

      Working with selection - ungrouped or within a group

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      8k Views
      Didier BurD
      Yes it is doable. For instance: def editing_group? if Sketchup.active_model.active_entities.parent.class == Sketchup::ComponentDefinition and Sketchup.active_model.active_entities.parent.group? return true else return false end Will return a boolean to tell the script if the user is currently editing a group. BUT using methods of the selection class is independant of that. Even if the user is editing a group, Sketchup.active_model.entities can be accessed the usual way, and Sketchup.active_model.active_entities will return a collection of entities of the active group/component. If you have to check wether selection is a group or not, use this test: Sketchup.active_model.active_entities.parent.class == Sketchup::ComponentDefinition (because group are stored as if they are components !) and if you have to check wether a particular selected object is part of a group or not, use this test: if editing_group? and Sketchup.active_model.active_entities.include?( object_id ) ... Hope this helps,
    • PixeroP

      My ruby's

      Watching Ignoring Scheduled Pinned Locked Moved Plugins
      22
      0 Votes
      22 Posts
      4k Views
      M
      Hi Pixero,, Many Thanks for the scripts, especially the JS frame step, this isn't necessarily a request for you but I'm surprised this hasn't been discussed more. Could this not be incorporated or adapted so that it could be used with some rendering software to produce animations. Unless i missed something I'd have thought this would have jumped on many others. either way many Thanks Matt
    • 1
    • 2
    • 11
    • 12
    • 13
    • 14
    • 15
    • 15 / 15