sketchucation logo sketchucation
    • Login
    1. Home
    2. fizgig
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    F
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 22
    • Posts 69
    • Groups 1

    Topics

    • F

      Anyone know why changing "RotZ" to 45...

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      5
      0 Votes
      5 Posts
      980 Views
      S
      Oops! V7 version of model attached! test2_av7.skp
    • F

      Animate doesn't return to normal

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      5
      0 Votes
      5 Posts
      1k Views
      F
      @saladyne said: No-one else stepped in so I've done a bit more research and there is a problem with the coding in fizgig's DC. To quote the 'Assembling a Dynamic Component' example from this site; "When you want to reference an attribute value quotation marks are not needed. If you are telling an attribute to do something they are needed". The quotes are noticeably missing around 'swing_angle' in fizgig's component... adding them in fixes the problem of creating a rogue attribute. It doesn't however fix the referencing issues, but these can be corrected by moving the 'onClick ANIMATE' command to the BODY part of the component. Sorry Saladyne, I didn't see your post there. Funny enough, I ran into the problem again and knew I had discussed it before. I just came back and searched for my posts and found this thread and your last post about the need for quotes. That did the trick. Thanks so much!
    • F

      Sketchup makes backup files and leaves original alone

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      1
      0 Votes
      1 Posts
      186 Views
      No one has replied
    • F

      Delete a material that's being used (using Ruby)

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      7
      0 Votes
      7 Posts
      355 Views
      tridemT
      @tig said: .. but to do it within a script .. doh! .. actualy for me it's time to go to sleep
    • F

      Random Name Chooser

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      371 Views
      No one has replied
    • F

      What button is the user holding down?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      5
      0 Votes
      5 Posts
      151 Views
      F
      Yeah. Looking into it, there is a lot more work involved. I'd have to change my program quite a bit to fit it into this programming structure.
    • F

      Wacky dynamic component doors

      Watching Ignoring Scheduled Pinned Locked Moved Dynamic Components sketchup
      9
      0 Votes
      9 Posts
      2k Views
      R
      Im fairly sure you do need the quotes, as the new version i posted didnt work properly without them. And did the exploding and recomponenting thing not work?
    • F

      Anyone know how to change the color of a layer?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      10
      0 Votes
      10 Posts
      400 Views
      thomthomT
      @xrok1 said: its to bad there isn't something like a macro recorder in SU where you can perform an action, then just check the code it created. Wouldn't help when there's no API for the action. Materials and Layers are sorely missing methods.
    • F

      Getting the material of a face not directly assigned...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      341 Views
      TIGT
      Why not have a method that picks a face and returns its material. If it's nil and it's not in the model then the picked point could also return the 'container' - i.e. group or component and it's material - if it's not nil then that's the nil face's material too... Your 'pick-helper' can return two values ?
    • F

      Method to identify what context the user is in?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      334 Views
      L
      [quote="fizgig"] If the user does double-click into a group, the active context is that group and the local coordinate system associated with that group. yes,I want this too.I ask the same qus here http://forums.sketchucation.com/viewtopic.php?f=180&t=22915&p=193698#p193698
    • F

      I thought I understood groups and components!

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      3
      0 Votes
      3 Posts
      182 Views
      TIGT
      It's one of those glitches thet we just work around for now... Make it unique... When it's fixed it won't matter...
    • F

      Clear the ruby window

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      11
      0 Votes
      11 Posts
      452 Views
      Chris FullmerC
      Anyone want to configure Jim's plugin for 64bit? Chris
    • F

      Bug in custom attributes exposed by Ruby...

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      1
      0 Votes
      1 Posts
      279 Views
      No one has replied
    • F

      Trouble with .position_material method

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      36
      0 Votes
      36 Posts
      5k Views
      F
      Thanks for carrying this on ThomThom. I think you're on to something here and I'm experimenting further. One of the complicating factors for me is that the face I want to apply texture to is often in a group which is in turn in a group (the wall file I posted earlier was a simplified version of what I'm doing). I notice that when I run the UVhelper script modified per your homogenous tip earlier, I get better UV values. I also notice that the real-world vertex positions are in global coordinates (returned from the face.outer_loop.vertices.each method). Conversely, when applying a texture, you need to use coordinates that are based on the local coordinate system that the face belongs to. I'm going to play around further. I've attached my modified uvhelper script. If what I said above is confirmed about local and global coordinates then I'll modify the uvhelper script further to report in local coordinates. uvhelper.rb
    • F

      Extending ComponentInstance Class

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      9
      0 Votes
      9 Posts
      279 Views
      fredo6F
      @adamb said: I'm sure what Fredo meant to say is that its not good practice to overload (or to some degree) extend a built-in class. Its very good practice to derive from / subclass an existing class to create a specialization you may want. Adam Thanks Adam, this is exactly what I meant. Somehow, the best would be that we restrict the possibility of name clashing only at Module level, which implies that all scripts are alway encapsulated within modules, so that it is easier to control.
    • F

      Consolidating instances to point at one definition

      Watching Ignoring Scheduled Pinned Locked Moved Newbie Forum sketchup
      4
      0 Votes
      4 Posts
      243 Views
      GaieusG
      "Model library" (as Dave says) i.e. the built in Component browser (Window menu). As long as you keep inserting components from external resources (not from inside the active model), SU will consider them different instances. This is normal as otherwise you could incidentally replace existing components with ones that have the same name somewhere else.
    • F

      Assign a texture to a group or component instance?

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      245 Views
      F
      Thanks Chris! Forgot all about the parent class idea. Still wrapping my head around this object-oriented approach.
    • F

      Sketchup transformation.to_a structure

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      575 Views
      Chris FullmerC
      How much do you really need to learn "the matrix"? You can do a lot of stuff without ever messing with it. Chris
    • F

      Distance between a vertex in one group to a vertex in anothe

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      8
      0 Votes
      8 Posts
      557 Views
      TIGT
      Something like... ### assuming model, compo'defn, instance etc defined earlier on... transformation = component_definition.transformation * component_definition_instance.transformation this_parent = component_definition_instance.parent while not this_parent == model transformation = transformation * this_parent.transformation this_parent = this_parent.parent end#while ### now have full transformation for the instance no matter how deeply it's nested... ??? Untested - just a thought... Adjust for Edge etc...
    • F

      System(iexplorer) freezes sketchup until iexplore is closed

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      300 Views
      Dan RathbunD
      Just stumbled upon this old post... and saw that the correct answer was never given. (Lest some newbie be misinformed, by finding this topic, I'll add the correct answer.) Don't use system(), use UI.openURL() UI.openURL("file;//C;/output.html")
    • 1 / 1