sketchucation logo sketchucation
    • Login
    1. Home
    2. tomasz
    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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 106
    • Posts 862
    • Groups 4

    Posts

    Recent Best Controversial
    • RE: Texture.use_alpha?

      Hi TBD,
      I am surprised there is no such a method.
      The PNG testing will be helpful for me.
      Thank you!
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Separate DPI for screen and printing

      Thanks Jhauswirth!
      Printing is usually 'time consuming', so few seconds more won't cause much headache. In return we will receive faster editing and smaller file sizes = save a lot of space on a company server. Layout could check if ScreenDPI is equal to PrintDPI and if positive just print what is already in memory. It will give more flexibility.

      Tomasz

      posted in LayOut Feature Requests
      T
      tomasz
    • Texture.use_alpha?

      Hi,
      Is there way to find out if a texture has alpha channel?
      Texture class has no such a method. Material method relates to transparency (opacity).
      Will material.materialType help me?

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Question about cubicpanoout.rb

      favicon

      (www.smustard.com)

      Fix aspect ratio - should help if I understand right.
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      @cphillips said:

      I meant that if you wanted to build a dhtml suite dialog I would give you advice.
      Do you have a UI in mind?

      I meant if you could show us how you have connected html and Ruby. How you pass results back to Ruby.

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      Chris,
      I am interested. Give us a guidance, please.
      Thanks in advance.
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: A kickass UI using WebDialogs and DHTML Suite.

      Chris,
      It is amazing. My head is exploding πŸ˜’
      Bye Bye Simple input boxes. I just have to wait for the weekend πŸ˜„
      I hope connecting it to SU is easy.

      Thanks a lot!
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      @daiku said:

      gourp.entites will give you the array of entities in the group. Then run through all the items in the array, and look for your face.

      I just want to OPEN a group. I am using group.entities.. but it is not the case. uvHelper behaves different INSIDE.

      There is method in model called close_active. But I cannot find make_active. How can I achieve it?
      In other words - is there way to do outliner double click in Ruby?

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      Thank you Clark. Unfortunately I am already finding faces as group entities but UVHelper doesn't give correct values or I am doing sth wrong.

      Gaieus, I will issue SU2KT 2.3 without support for distorted textures within groups. I don't want to spend months on it. Exploding, exporting UVs and undoing explosion could be a solution!

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      Is there way to get inside the group and select face as one can do directly in SU? I know how to add an entity to selection but how I can enter the group(component) to use local coordinates?

      I hope someone will be able to help me on the matter.
      Thanks

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      @gaieus said:

      Would the xml file be considerably bigger if all groups/components were exploded?

      No. Only groups\components with photomatched textures need to be exploded prior to exporting. The rest of a model can stay untouched.
      I want to export correct UVs from groups because it is a proper solution πŸ˜„

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      I have sorted out issue #2.
      For those interested how: I simply assign a texture to newly created group and write it to TW and then load again a face with the same texture to TW. If texture has been added twice it means it is distorted (photomatched).

      I still don't know how to get proper UVs for distorted texture within a group.

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      Does anyone how why when I query the UVs of distorted texture located within a group or component, I am getting wrong coordinates? I thought UVs are independent of face location. What is the 'nature' of UV_helper? Do I need to apply global transformation of the face to UV_helper object to get correct UVs?

      Thanks
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      I have found following method:

      mat.materialType
      

      Types are not described anywhere in documentation, but are quite easy to figure out:
      0 - only colour
      1 - texture used
      2 - texture coloured
      I think I have found a ruby bug. When the texture colour is reset materialType returns still 2.
      It can be brought back to 0 when texture is removed.
      When the user will reset colour the method is useless cos it returns wrong value. 😞

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: Material with coloured or distorted texture

      Whaat & Rick
      I am trying to make SU2KT export distorted textures correctly. It exports coloured textures cos
      there is just one texture associated with a material. My script (beta) has problem with recognizing
      the first texture getting into texturewritter. When should I use uvHelp? I could use it for all faces, but it would be memory consuming and simply is not necessary.

      I have also noticed that UV coordinates obtained using UVHelper are affected when the faces are inside
      group or component. When exploded, UVs are correct. It is a surprise for me.

      Whaat, your script is an interesting one, but it is half-solution.
      Thanks
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • Material with coloured or distorted texture

      I don't want to brake open door so here is my question:

      How can I precisely identify that a face uses:

      1. coloured texture

      2. distorted texture (without fixed pins)

      3. My solution to the first is to check texture.average_color and compare it with the colour of the material, if != then coloured=true? Am I thinking right?.

      4. .. I have no solution.. comparing UVs using uv_at and using UVHelper? if == then distorted=false ?

      Cheers
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: UI.openURL(executable + params)

      I have no idea. I am working on XP.

      posted in Developers' Forum
      T
      tomasz
    • RE: UI.openURL(executable + params)

      The file name is case sensitive. Does it matter?
      Try dir with the folder and look for the file.upcase.
      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: UI.openURL(executable + params)
      s=`c;/Program Files/Kerkythea/Kerkythea.exe "c;\\Program Files\\Kerkythea\\start.kst"`
      

      It is script that will run exe with parameter in "" (PC).
      For MAC I presume I will have to replace all \ by /.

      Still don't know how to keep SU alive when KT is running.

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • RE: UI.openURL(executable + params)

      Azuby, I have finally understood what you have written in you first post (I am not very familiar with standard Ruby methods). It works excellent with "dir", but for some reason KT is being opened only when I close SU otherwise SU is hanging and KT awaiting to start (edit - it takes about 40sec KT to start).

      system("Kerkythea.exe start.kst")
      
      s=`Kerkythea.exe start.kst`
      

      works fine. Is it possible to run KT as a separate thread,
      so SU would be still working?

      Tomasz

      posted in Developers' Forum
      T
      tomasz
    • 1
    • 2
    • 40
    • 41
    • 42
    • 43
    • 44
    • 42 / 44