sketchucation logo sketchucation
    • Login
    1. Home
    2. N Lindenthal
    3. Posts
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    N
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 39
    • Posts 316
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Proper_animation.rb ,some questions

      Mac OS X 10.4.10, SketchUp 6 (6.4.120)

      @malaise said:

      …
      N Lindenthal has the same strange behaviour. …

      My Mac has proper animation with proper_animation, if I drag the folder »extensionmanager« out of Tools folder. Then the right mouse click menue on marked objets has the item »Transformation«.

      Now the question would be, whether this same folder »extensionmanager« also disturbs the context menue of SketchUp on Windows PC.

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      Qui!
      Now your script runs, Matt666. My component is selected by name/definition. As it is selected, I can »Get Position - X« (Proper_animation.rb from RichW).

      Matt666, you have my elevator model with arrow buttons. With Links.rb the arrow up buttons will select the elevator and »Get Position - 2«. The arrow down buttons will select the component elevator and then »Get Position - 1«.

      But my question is, whether I can start a ruby.rb script by clicking a button.

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @Matt666
      I did understand you. First changes did not delete my error. Hm? What could it be?

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      Matt, here is my model to select a component by name "Stein"


      FahrstuhlF.skp.zip to selcect component by name

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @Matt666
      Thanks for your corrections.
      When your script runs fine, in the end you have the component "Stein" selected?

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @Fredo6

      This is my ruby script »Aar_Select_comp_by_name.rb« in the Plugins folder:

      @unknownuser said:

      def select_comp_by_name(comp_name)
         model = Sketchup.active_model
         sel = model.selection
         sel.clear
         compdef = model.definitions[comp_name]
         if compdef  #There is a component
            sel.clear
            sel.add compdef.instances
         else
            UI.beep
         end
      end
      #def select_comp_by_name(comp_name)
      #@sel = Sketchup.active_model.selection
      #@sel.clear
      #@sel.add Sketchup.active_model.definitions[comp_name].instances
      #@sel
      #end

      If I repeat loading by ruby console:

      load "Aar_Select_comp_by_name.rb"
      

      then come the following notes
      @unknownuser said:

      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:6: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:7: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:7: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:8: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:8: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:8: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:10: warning: parenthesize argument(s) for future version
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:10: warning: parenthesize argument(s) for future version
      true
      … but also »true«.

      Now with ruby script line

      Sketchup.active_model.definitions["Stein"]
      

      I get
      @unknownuser said:

      nil

      and with

      > select_comp_by_name("Stein")
      

      @unknownuser said:

      Error: #<NoMethodError: undefined method ` ' for main:Object>
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:2
      (eval):197

      … nothing is selected.

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @Fredo6
      Now my model has no group "Stein", but one component "Stein". But I have no luck. To select my component "Stein" by script in ruby console does not work. Did you try your script lines and you could select your component by name?

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @unknownuser said:

      …
      I wonder what you call "an Object named "stein"", as in Sketchup, you only give a name to Components or Groups, but there is nothing like an 'object'.
      …

      Please excuse me, I have a group named "Stein", no object.

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: [Plugin] Proper Animation V1.08 Beta(Updated 14/11/10)

      I see no difference. My elevator in scene 1 is as fast as my elevator in scene 2. But to change from one scene to the other takes 8 or 2 seconds.

      posted in Plugins
      N
      N Lindenthal
    • RE: Select all geometry

      @Fredo6

      @unknownuser said:

      Sketchup.active_model.definitions[comp_name]
      Error: #<NameError: undefined local variable or method `comp_name' for main:Object>
      (eval):197

      This comes from ruby console.

      I had an object named "Stein". And your question to a component named ”Stein" let me make also a component named "Stein". Same error.

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @unknownuser said:

      Just remove the exclamation mark to @sel.clear

      Then come the following error:
      @unknownuser said:

      stones=select_comp_by_name("Stein")
      Error: #<NoMethodError: undefined method `instances' for nil:NilClass>
      /Library/Application Support/Google SketchUp 6/SketchUp/Plugins/Aar_Select_comp_by_name.rb:4
      (eval):197

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      Unfortunately I don’t know, what to type in the Ruby console line (I am Ruby beginner).

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: Select all geometry

      @Didier

      
      def select_comp_by_name(comp_name)
      @sel = Sketchup.active_model.selection
      @sel.clear!
      @sel.add Sketchup.active_model.definitions[comp_name].instances
      @sel
      end
      
      

      From this I made a text file "Aar_select_comp_by_name.rb" in the Plugins folder. Restart SU.

      
      stones=select_comp_by_name("Stein")
      
      

      This I wrote in the ruby console line.

      Then comes the following error:

      @unknownuser said:

      stones=select_comp_by_name("Stein")
      Error: #<NoMethodError: undefined method `clear!' for #Sketchup::Selection:0x1afaa3b0>
      (eval):11
      (eval):11

      How to select an object by name?

      posted in Developers' Forum
      N
      N Lindenthal
    • RE: [Plugin] Proper Animation V1.08 Beta(Updated 14/11/10)

      @morisdov said:

      …
      and right mouse click "Transformation->Get position 2". …

      Ah, I understand. Get Position - 2 is only available to those object, which have Set Position - 2. Now my question is, how not to use right mouse click, but to »Get Position - 2«. So my idea is, to us the ruby console to select one object (by name). Now my question is, how to tell the selected object to »Get Position - 2«?

      posted in Plugins
      N
      N Lindenthal
    • RE: [Plugin] Proper Animation V1.08 Beta(Updated 14/11/10)

      How can I tell the ruby console, to »Get Position - 2«?

      I ask this to have a proper animation, without getting all other remembers of a scene.

      posted in Plugins
      N
      N Lindenthal
    • RE: Bei wem läuft SketchUp auf einem Mac?

      @azuby
      Deine Frage ist gut und berechtigt. Leider muĂźte ich eine lange Pause fĂĽr SU einlegen. Da habe ich vieles vergessen. Vom extensionmanager verspreche ich mir, in die mehreren Skripte im Plugins- oder im Tools-MenĂĽ insofern eine eigene Ordnung zu bringen, daĂź ich Unterordner dort einrichten kann, die ich selbst benenne.

      Aber soweit bin ich noch nicht und könnte auch eine Anleitung dazu gebrauchen.

      posted in Deutsch
      N
      N Lindenthal
    • RE: Proper_animation.rb,Bewegungen ohne MĂĽhe.

      Kann proper_animation.rb losgelöst werden von Szenen?

      Über proper_animation.rb von Morisdov kann man sich gar nicht genug freuen. Es dreht Türen, verschiebt Fahrstühle, explodiert Einzelteile einer Maschine (oder »schraubt« sie zusammen). Es verschiebt oder dreht Objekte filmisch zwischen zwei Positionen.

      Aber proper_animation.rb bindet die Objektpositionen gleichzeitig auch an Szenen, die wiederum viele andere Einstellungen (Blickpunkt, Richtung, Neigung, Tageszeit [Sonnenstand], beteiligte Schichten usw.) festschreiben.

      Meine Frage ist nun: Wie entkoppele ich die propperen Bewegungen von Szenen? Denn ab dann könnte im Treppenhaus der Fahrstuhlschalter den Animation Observer starten und den Fahrstuhl fahren lassen. Oder der Kran über der Baustelle könnte schwenken durch Starten der Animation im Steuerhaus des Krans, egal von welcher Richtung der Kran gerade gezeigt wird.

      posted in Deutsch
      N
      N Lindenthal
    • RE: Proper_animation.rb,Bewegungen ohne MĂĽhe.

      @n lindenthal said:

      Am Mac bleibt im Kontextmenü (rechte Maustaste) der zum Proper_animation.rb-Skript gehörige Menüpunkt »Transformations/…« aus.

      Dieses Problem wurde gelöst durch Neuinstallation des extensionmanager.rb-Skripts im Tools-Ordner.

      posted in Deutsch
      N
      N Lindenthal
    • RE: Bei wem läuft SketchUp auf einem Mac?

      Der bei mir auftretende Fehler (Proper_animation.rb hat keinen »Transformation«-Eintrag im Kontextmenü für markierte Objekte) konnte dadurch gelöst werden, daß das installierte Ruby-Skript extensionmanger (von azuby) ausgetauscht wurde gegen die neue Version v0.2.

      Danke an alle fĂĽr die hilfreichen Hinweise.

      posted in Deutsch
      N
      N Lindenthal
    • RE: [Plugin] SceneExporter

      Is ruby mighty to ask SU, which preferences are collected in scenes?

      This would be an other way to export scenes.

      I ask this to turn it opposite. I would like to tell SU by ruby script, how to show, what a scene could show.

      posted in Plugins
      N
      N Lindenthal
    • 1
    • 2
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 13 / 16