• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Cannot clone Sketchup::Color objects

Scheduled Pinned Locked Moved Developers' Forum
1 Posts 1 Posters 209 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    thomthom
    last edited by 13 Nov 2010, 20:12

    When you try to clone a Sketchup::Color object using .dup or .clone both methods return nil.
    I ran into a case where I cloned a colour - at least I thought so - and gave it to a view.draw operation where SketchUp would then freeze.

    ` c = Sketchup::Color.new('red')

    Color(255, 0, 0, 255)
    n = c.clone
    nil
    n = c.dup
    nil`

    FYI

    Thomas Thomassen — SketchUp Monkey & Coding addict
    List of my plugins and link to the CookieWare fund

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Buy SketchPlus
    Buy SUbD
    Buy WrapR
    Buy eBook
    Buy Modelur
    Buy Vertex Tools
    Buy SketchCuisine
    Buy FormFonts

    Advertisement