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

    Posts

    Recent Best Controversial
    • Find the position of a group in the active context

      Hi, I'm trying to find the position of a group in the active context, relative to the coordinate system of the group that it contains (which itself can be contained within other groups), this picture illustrates the situation

      https://sites.google.com/site/dacastror/archivos/coordenadas.jpg

      You may also need to do this but with components. Really, I do not find the way to accomplish what I need, I appreciate your help
      (google translator)

      .

      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      wow thanks Dan, I will take some time to study this code, worth but me several questions arise, I will try to solve the most I can on my own, thank you very much 😄
      (google translator)

      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      I did this and I get "error", I couldn't see what is wrong

      mod = Sketchup.active_model
      definitions = mod.definitions.to_a
      
      def find_entity(dname)
        found = nil
        for d in definitions
           next if d.image? 
           found = d.instances.find{|i|
             i.attribute_dictionary(dname)
           }
           break if found
        end # for
        return found
      end # def
      
      entity = find_entity("dic1")
      
      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      Thanks Dan, I find it very nice your suggestion, I will give a chance to this

      Thanks for replying TIG, I really needed to know the two things, I was lost without your help

      (google translator)

      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      TIG thank you very much, I will try that 😄

      I was trying something, but is a bit more complicated:

      
      idd = "dic1"
      hit = nil
      mod.definitions.each{|d|
         next if d.image?  
         d.instances.each{|i|
            next if i.attribute_dictionaries.to_a.size<1
            dictio = i.attribute_dictionaries.to_a
            if dictio[0].name==idd
               hit=i           
               break
            end
         break if hit
         }
      }
      
      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      I'm reading carefully the lines of code and I'm learning TIG proposes several things, another question arises me, suppose that I assign a different name to each dictionary of each entity and I want to find the entity using the name of the dictionary. How can I modify the condition
      " if i.get_attribute("dacastor 666", "id", nil)==idd "?
      (google translator)

      posted in Developers' Forum
      D
      dacastror
    • RE: Refer to entities from code

      wow! thank you very much TIG is exactly what I needed, just some things I do not understand, that is .image?, break and break if hit

      and one more question, is there anything I can use instead of .make_unique? is that the documentation say it is an outdated method

      posted in Developers' Forum
      D
      dacastror
    • Refer to entities from code

      Hello, I want to make a code that gives a name or a mark to groups (or components) that are selected, so that I can then refer to this object from code without being selected at that time and then apply for example a transformation
      t = Geom::Transformation.scaling 10 entity.transform!

      for now the only thing I've accomplished is to name the group, but I do not believe this will serve for my purpose

      modelo = Sketchup.active_model
      
      if Sketchup.active_model.selection.empty?
         UI.messagebox "seleccione un grupo o un componente"
         return
      end
      
      i=0
      entidades=[]
      modelo.selection.each { |entity| 
       if entity.is_a?(Sketchup;;Group)||
          entity.is_a?(Sketchup;;ComponentInstance)
          i=i+1
          entidades[i-1]=entity 
          entidades[i-1].make_unique
          entidades[i-1].name = "Entidad #{i-1}"
       end
       }
      

      I thought about using entityID but do not quite understand how you could use this, besides not persistent between sessions.

      (google translator)

      posted in Developers' Forum
      D
      dacastror
    • RE: [V-ray] My video rendering

      @jpalm32 said:

      Nice!
      I read that if the glass is pyrex and the liquid is like canola oil (Could be another oil),
      there is no refraction.

      this is correct if oil index and the index of the glass are the same
      however both indices of refraction index will be different compared to air, so there will be refraction when light passes from glass to air or air to glass
      (google translator)

      posted in Gallery
      D
      dacastror
    • RE: [V-ray] My video rendering

      .

      Today and tomorrow are the last days to vote for the video that I did, thanks for your help (google translator)

      https://sites.google.com/site/dacastror/archivos/escena 3.00043.jpg?

      posted in Gallery
      D
      dacastror
    • RE: [V-ray] My video rendering

      @jo-ke said:

      That one worked!

      Jo-ke thank you very much!

      posted in Gallery
      D
      dacastror
    • RE: [V-ray] My video rendering

      @jo-ke said:

      there is no like button:

      is very strange, try this link:
      https://apps.facebook.com/offerpop/Contest.psp?c=168374&u=12097&a=202991206406825&p=209436250491&rest=0&v=View

      posted in Gallery
      D
      dacastror
    • RE: [V-ray] My video rendering

      @unknownuser said:

      Refraction is such an interesting behavior!

      Voted for this entry in hopes you get some recognition for this awesome video. The music complemented the animation very well and made it beautiful.

      Exito!

      thank you very much for your words, encourages me to continue making videos!!

      @jo-ke said:

      I have facebook but I'm not able to see the video.

      just follow the instructions 1), 2) and 3) I put up, I appreciate your interest

      Voting closes on November 15, thank you for your support

      posted in Gallery
      D
      dacastror
    • RE: This was my final university project

      very nice!

      I share a project of mine:
      http://sketchucation.com/forums/viewtopic.php?f=81&t=48792

      posted in Gallery
      D
      dacastror
    • [V-ray] My video rendering

      Hi, this is a video I made ​​for a contest, the objects were made ​​in sketchup and rendered with vray %(#a3a3a3)[(must have facebook to see the video):

      http://bit.ly/QsAQ6i

      If you like, you can vote for this video
      Here are the steps to help:

      1. give "like" to "The Optical Society"
      2. give it to accept Offerpop
      3. give the button that says "VOTE" coming out next to the video]

      leave a picture of project:

      https://sites.google.com/site/dacastror/archivos/vaso 2 mod.jpg

      I spend around 8 hours of work to this project, render 26 hours.
      (I used google traslator)

      posted in Gallery
      D
      dacastror
    • RE: Trick to match the output of V-Ray and output Sketchup

      @thomthom said:

      That limit the size of your render to the size of the viewport. If you need highres images, but in the same aspect ratio of the viewport use the "Get view aspect" button and then lock the aspect ratio. Then you can increase the output size and still be relative to SU. So if you save out a 3000px wide image in SU and then render out a 3000px wide image in VfSU they match, no problem.

      ok, I like your solution

      posted in V-Ray
      D
      dacastror
    • Trick to match the output of V-Ray and output Sketchup

      Hi all, I want to share a trick I discovered yesterday to match the output of V-Ray and output SketchUp. It's easy all you do is turn off the "Override Viewport" in the section "Output"

      [xxl-img:xt62k5vq]https://sites.google.com/site/dacastror/archivos/vray ouput.png[/xxl-img:xt62k5vq]

      By doing this no matter how you change the size of the SketchUp window or change the value of "Field of View" in Sketchup

      I put these images as an example:

      Vray output:
      [xxl-img:xt62k5vq]https://sites.google.com/site/dacastror/archivos/cristal D.jpg[/xxl-img:xt62k5vq]

      SketchUp output:
      [xxl-img:xt62k5vq]https://sites.google.com/site/dacastror/archivos/paracristal.png[/xxl-img:xt62k5vq]

      Combination using photoshop:
      [xxl-img:xt62k5vq]https://sites.google.com/site/dacastror/archivos/Cristal%2BLineas.jpg[/xxl-img:xt62k5vq]

      I guess some of you already knew but maybe others do not, I hope will be helpful

      (sorry for errors of the machine translator)

      posted in V-Ray render plugins extensions
      D
      dacastror
    • My spherical render

      hi all, wanted to present my first render spherical done with Sketchup + Vray and hosted on 360cites

      http://www.360cities.net/image/holographic-optical-assembly?override_cache=true#145.26,28.52,58.3

      it is a replica of the digital holographic optical lab at my university in Colombia, I hope you like

      https://sites.google.com/site/dacastror/archivos/Optics Laboratory1.jpg

      (sorry for my bad English)

      posted in Gallery
      D
      dacastror
    • RE: Get the coordinates of the corners of the &quot;blue box&quot;

      @thomthom said:

      Check out the source of this plugin that draws edges of the boundingbox: http://forums.sketchucation.com/viewtopic.php?t=29377#p256536

      Thom thank you very much.
      I know I need this in lines 66 to 68 of your code:

      definition = self.get_definition(entity) bb = definition.bounds pts = self.bound_points(bb).map { |pt| pt.transform( entity.transformation )

      is a shame that is not yet ready to understand these lines clearly, however I will be very useful, very grateful

      (sorry for my bad English)

      posted in Developers' Forum
      D
      dacastror
    • RE: Get the coordinates of the corners of the &quot;blue box&quot;

      I know you helped me very much, sorry for asking much just I want to learn

      posted in Developers' Forum
      D
      dacastror
    • 1 / 1