sketchucation logo sketchucation
    • Login
    1. Home
    2. alr
    3. Posts
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 16
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Edges opacity adjusting problem

      @anssi said:

      Hi,

      The effect is very easy to achieve in Photoshop. Export a colour image with shadows etc. but with edges turned off. Export a second image, as a hidden-line line drawing without shadows. Put the line drawing as a layer above the colour image, set the layer mode to Multiply or Darken, and adjust the layer transparency slider until you get what you want.

      Thank you, Anssi, - it's a very useful technique for standalone pictures!

      Itโ€™s a pity, but according to my task I would like to have the opacity adjusting inside SketchUp session.
      I have got that in current version of SketchUp itโ€™s impossible.

      Good luck!

      posted in SketchUp Discussions
      A
      alr
    • RE: Wrong visualization color (screen color) of a face

      @alan fraser said:

      In other words, your red example logically ought to show the same difference as the green...but it doesn't...because it's red.

      OK! Thank you for your opinion and for the really pretty phrase I have quoted ๐Ÿ˜„ !

      In my task I have to work with lines (edges) on the faces backgrounds. Therefore the relation between the edge screen colors (stable) and the faces screen colors (changeable) is very important to me. So I really see a problem ๐Ÿ˜„.

      Thank you again for your answer. I will take into consideration the SketchUp color visualization properties you have mentioned. Good luck!

      posted in Newbie Forum
      A
      alr
    • RE: Can I set a WebDialog Box to the screen center?

      @jim said:

      I've moved this to the Tutorials section:

      301 Moved Permanently

      favicon

      (www.sketchucation.com)

      It works! Thank you very much for your assistance. I agree that your decision of WebDialog positioning problem must be in the Tutorial section - itโ€™s very useful.

      posted in Developers' Forum
      A
      alr
    • RE: Can I set a WebDialog Box to the screen center?

      @unknownuser said:

      Google search engine is your friend.

      Read this, then apply that information to your HTML.

      http://www.mollerus.net/tom/blog/2007/10/javascript_for_centering_a_popup_window_to_the_scr.html

      Thank you for this link.

      I have got that I can activate WebDialog, show it and INSIDE html use Javascript for screen sizes obtaining and open the SECOND WebDialog window, using screensize information I have obtained. So I need the FIRST WebDialog for correct positioning of the SECOND WebDialog. Therefore I can set the right position of the SECOND Web Dialog box only.

      But the task is to set the position of the FIRST Web Dialog box in the center of the screen. I can't understand how I can use Javascript before Web Dialog activation.

      Sorry for my stupidity ๐Ÿ˜„. It may be very simple, but it is not clear to me yet.

      posted in Developers' Forum
      A
      alr
    • RE: Can I set a WebDialog Box to the screen center?

      @wikii said:

      to all,
      I hava tried to get screen size using JavaScript in html with get_element_value methods,it can work in SU ruby panel.

      In html:

      @unknownuser said:

      <script language="javascript">
      document.write('<div style="display:none;" ><input type="text" name="textfield" id="screen_width" style="width:150px;" value="'+ screen.width + '" /></div>')</javascript>

      In rb program:

      @unknownuser said:

      $dlg.get_element_value "screen.width"

      when the program is running, $dlg.get_element_value "screen.width" always get nothing;but in ruby panel,$dlg.get_element_value "screen.width" return "1680",that's exact my screen width!

      I have tried too, but I have some problems. Would you be so kind as to send the whole sources (html+rb), please?

      posted in Developers' Forum
      A
      alr
    • RE: Edges opacity adjusting problem

      Thank you very much for saving of my time from useless experiments!

      posted in SketchUp Discussions
      A
      alr
    • RE: Wrong visualization color (screen color) of a face

      @unknownuser said:

      arl,
      Isn't orbiting your solution?
      Unselect 'Display Shadows' and orbit to see what happens to the visibility.

      Thank you for answer.

      I know that the color on a face will alter based on the angle you're looking at it.

      But what about the situation you can see on the screenshot in my question? Angle IS the SAME (top view), but the color visualization principles for green and red faces are NOT! Visualization of Red color -> true (screen color = entity color) but visualization of green color -> wrong SIMULTANEOUSLY (?!). What is the rule for such behaviour prediction?

      posted in Newbie Forum
      A
      alr
    • RE: Can I set a WebDialog Box to the screen center?

      Thank you for immediate answer!

      Would you like to clear some details:

      1. How I can find the current screen resolution in this case?

      2. I can use javascripts inside (later), but when I activate WebDialog Box I have to use coordinates at the beginning. How I can find coordinates on this "initial" stage?

      posted in Developers' Forum
      A
      alr
    • Can I set a WebDialog Box to the screen center?

      Can I set the position of WebDialog Dialog Box to the center of the SCREEN (not to the view (viewport) center, but to the SCREEN center)?

      posted in Developers' Forum
      A
      alr
    • Edges opacity adjusting problem

      I can get the visual results of the material/color opacity adjusting, when the material/color assigned to a FACE. But when the material/color assigned to an EDGE I can't get any visual effect, after adjusting of the material/color opacity.

      Why?

      posted in SketchUp Discussions sketchup
      A
      alr
    • Wrong visualization color (screen color) of a face

      On the attached screenshot you can see the green edge and the green face. This entities have the SAME color RGB[0,128,0], and opacity=100. But on the screen (Top view) you can see the difference in their visualization - on the screen the edge has a true color, but face has another (wrong) color (you can verify it in Photoshop, for example).

      But if the color of the face and crossing edge is red (RGB[255,0,0], and opacity=100) - visualization is normal - the face and crossing edge have true and the same screen color.

      Why?


      screen-colors.png

      posted in Newbie Forum sketchup
      A
      alr
    • Current screen resolution?

      Is it possible to retrieve the current screen resolution from the Ruby script?

      The task is to set the position of WebDialog Dialog Box to the center of the screen (not to the view center, but to the screen center).

      Thanks in advance!

      posted in Developers' Forum
      A
      alr
    • RE: The colour of a sphere

      It's work! You did it! Thank you very much!
      I appreciate your assistance - it was a good lesson to me.
      I was so stupid ๐Ÿ˜„ ...

      posted in Developers' Forum
      A
      alr
    • RE: The colour of a sphere

      @unknownuser said:

      Group the sphere's parts and colour the group...

      Thank you for the answer, but I am afraid that the situation is not so simple. If you try this approach you will find the yellow edge around the sphere (as on the FIG.1 in my previous post) again ๐Ÿ˜ž. The reason is simple - the grouping combine not only surface elements but the edges as well.

      You can see this effect if you set [Edges On] and [Edges Color by Material]. As I mentioned, I have to use this settings in my task.

      Do you have some suggestions?

      posted in Developers' Forum
      A
      alr
    • RE: The colour of a sphere

      @unknownuser said:

      That is probably the simplest way to wind up with a yellow sphere. Maybe what you want is to group the faces that makeup the sphere and then set the material on the group? If so add_group to entities and build the sphere in that group. Then do group.material="yellow".

      Thank you for your answer, but my real problem is the yellow edge around the yellow sphere [see FIG.1]. I have to use the mode Edges=On & Edges Color by Material according to my task.

      When I use the common variant I have mentioned in my first post without line <face.material="yellow"> and AFTER this in Sketchup (not from RUBY) assign the yellow color to sphere surface I have needed result - the yellow sphere with BLACK Edge around - [see FIG.2] - but I have to obtain this result from the RUBY only.

      When I use <face.material="yellow"> line - there is a yellow edge around yellow sphere ๐Ÿ˜ž [see FIG.1 again].

      How add_groupe can help me in this case? How can I group only the surface without the edges from the Ruby? May be some example code?


      spheres.jpg

      posted in Developers' Forum
      A
      alr
    • The colour of a sphere

      Merry Christmas!

      How I can assign a color (material) to sphere?

      I know this variant:

      circle1 = entities.add_circle([0, 0, 0],[0,0,1],15,24)
      circle2 = entities.add_circle([15,0, 0],[1,0,0],15,24)
      face = entities.add_face(circle1)
      face.material="yellow"
      face.followme(circle2)
      entities.erase_entities circle2

      It works, but I would like to avoid the line <face.material="yellow">
      and assign the material not to face but to the sphere shape as a whole after followme action.

      Is it possible?

      posted in Developers' Forum
      A
      alr
    • 1 / 1