[Plugin] FloorGenerator ( Updated 6-Apr-2017)

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby guanjin » Tue Jun 03, 2014 3:16 pm

sdmitch wrote:Posted new version.

Unsuns, I would appreciate it if you would let me take care of my plugins. Thank you.


eeeeeeee.gif



Each pattern, cannot directly activate command, to repeat the icon to perform。
0
I come from China, is to learn
User avatar
guanjin 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Tue Jun 03, 2014 4:06 pm

unsuns wrote:Did you test it ?
Now when I select a pattern it closes the window, so I have to reopen to adjust settings and if I select another pattern it's the same.


Apparently not enough!

The .set_on_close had unintended consequences and has been removed. Although it did seem to fix the problem of X'ing out, it, for some bazaar reason, was triggered when the pattern was changed. My bad :puke:
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby unsuns » Tue Jun 03, 2014 6:18 pm

The X-ing problem is back again !
0

unsuns 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Tue Jun 03, 2014 6:52 pm

unsuns wrote:The X-ing problem is back again !


Yes I know and it will be until I can figure out why changing the pattern selection causes the window to close.

Why do you insist on X'ing out of the window? If it is in your way then minimize it.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby jolran » Tue Jun 03, 2014 7:13 pm

Sam I'm looking at your code here. Cant remember which version this is. So you may have changed this behavior.
But in a callback you have a dialog close ?

You have a select with an event onchange:
Code: Select all
<select onChange='patternchanged(value)'>


The function then sends the callback
Code: Select all
function patternchanged(value){
   window.location='skp:PatternChanged@'+value;
}


In the callback block you have a dlg.close. So everytime select change dialog closes..

Code: Select all
@@dlg.add_action_callback("PatternChanged") {|d,p|
   @@opt=p; puts p
   if @@opt=="Reset" then
                  ["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth","Hexgon","Octgon","Two2One" ,"IrPoly"].each{|o|
  Sketchup.write_default("FloorGenerator",o,nil)};@@opt="Tile";
  end
  @@dlg.close; @@dlg=nil; self.dialog
}


I also see you have the command self.dialog trying to reopend the dialog ?
But it is set to nil before. Don't know if that messes things up..
Maybe a timing issue ?
0
Last edited by jolran on Tue Jun 03, 2014 7:33 pm, edited 1 time in total.
User avatar
jolran 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Tue Jun 03, 2014 7:32 pm

jolran wrote:Sam I'm looking at your code here. Cant remember which version this is. So you may have changed this behavior.
But in a callback you have a dialog close ?

You have a select with an event onchange:
Code: Select all
<select onChange='patternchanged(value)'>


The function then sends the callback
Code: Select all
function patternchanged(value){
   window.location='skp:PatternChanged@'+value;
}


In the callback block you have a dlg.close. So everytime select change dialog closes..

Code: Select all
@@dlg.add_action_callback("PatternChanged") {|d,p|
   @@opt=p; puts p
   if @@opt=="Reset" then
                  ["Brick","Tile","Wood","Tweed","Hbone","BsktWv","HpScth","Hexgon","Octgon","Two2One" ,"IrPoly"].each{|o|
  Sketchup.write_default("FloorGenerator",o,nil)};@@opt="Tile";
  end
  @@dlg.close; @@dlg=nil; self.dialog
}


I also see you have the command self.dialog trying to reopend the dialog ?
But it is set to nil before. Don't know if that messes things up..
Maybe a timing issue.

Edit: sorry meant to post this in the devlopper forum where you posted specific question. Copied and pasted wrong...



Yes I finally figured that all out. I just had to add a variable that I set to true if the PatternChanged and the window was closed and recreated. I deleted the post to the Developer forum as soon as I figured it out so as not to embarrass my self further.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby jolran » Tue Jun 03, 2014 7:36 pm

Ha ha ! Ah ok! :thumb:

I thought I was getting high or something. One minute I thought I read about it in the developper section, then it was gone. So I removed my last sentence as well, just in case I was wrong :lol: :lol:
0
User avatar
jolran 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby stagelight » Mon Jun 09, 2014 12:07 am

Thank you for another great plugin !!
This is what I've been working on lately, with your script.
0

stagelight 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Mon Jun 09, 2014 1:16 am

stagelight wrote:Thank you for another great plugin !!
This is what I've been working on lately, with your script.


It's a rather funny floor but a very nice bridge.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby djrique » Tue Jun 10, 2014 1:35 pm

Thank you guy for that great plugin. I'm a brazilian and translated it for portuguese. Do you think that it's good?
0

djrique 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Tue Jun 10, 2014 3:18 pm

djrique wrote:Thank you guy for that great plugin. I'm a brazilian and translated it for portuguese. Do you think that it's good?


Good by me.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby djrique » Tue Jun 10, 2014 9:18 pm

Upload .Rb file PT-BR Language: https://drive.google.com/file/d/0BwqiSt ... sp=sharing

i don´t know to create .rbz file... :oops:

THX.
0

djrique 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Wed Jun 11, 2014 2:55 pm

djrique wrote:Upload .Rb file PT-BR Language: https://drive.google.com/file/d/0BwqiSt ... sp=sharing

i don´t know to create .rbz file... :oops:

THX.


An .rbz file is just a .zip file with the extension changed to .rbz
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby Mistro11 » Mon Jun 23, 2014 12:06 am

ThankYou_sdmitch.jpg


Hope this render reflects my gratitude. :thumb:
0
i7-4930k @3.4/3.7GHz, 32Gb RAM, NVidia GTX 980Ti 6Gb, Windows 7 Pro 64bit
Structural Integrity is Not Just Physical...It's in the Design and Purpose
User avatar
Mistro11 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Mon Jun 23, 2014 12:31 am

It's beautiful. Thanks for making me look so good.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sidewalk » Mon Aug 18, 2014 6:23 pm

Excellent plugin! A tool like this has been on my wishlist for years.

One suggestion: Is it possible to add an exterior clapboard/lap siding setting? The parameters could be very similar to the wood setting.
0

sidewalk 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby toto ete » Wed Sep 03, 2014 5:12 pm

great plugin! super work and thanks for sharing it!
keep up the wonderful work!
0

toto ete 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby Pixero » Wed Sep 17, 2014 5:55 pm

Suddenly I get the same error as mentioned above.
When I change pattern the window closes.
I've re installed the latest version and tried it on two PCs.
Weird. :?
0
User avatar
Pixero 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Wed Sep 17, 2014 8:27 pm

Pixero wrote:Suddenly I get the same error as mentioned above.
When I change pattern the window closes.
I've re installed the latest version and tried it on two PCs.
Weird. :?


That makes no sense at all. Have you installed any new plugins lately? Maybe there is a conflict. Does the Ruby Console show any errors?
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby Pixero » Thu Sep 18, 2014 9:34 am

Here is what the console reports:

Code: Select all
Error: #<NoMethodError: undefined method `to_l' for nil:NilClass>
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:93:in `dialog'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:67:in `initialize'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:34:in `new'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:34:in `block in <top (required)>'
-e:1:in `call'


As a side note, would it be possible to have a setting for bevel size?
Like if I want half or even a quarter of the size of the bevel.
And some min and max distance of the random imperfections?
I think both are a litte too big for most cases.
0
User avatar
Pixero 
 

Re: [Plugin] FloorGenerator (Update 2-Jun-2014)

Postby sdmitch » Thu Sep 18, 2014 2:12 pm

Pixero wrote:Here is what the console reports:

Code: Select all
Error: #<NoMethodError: undefined method `to_l' for nil:NilClass>
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:93:in `dialog'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:67:in `initialize'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:34:in `new'
C:/Users/31jsa/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/SDM_FloorGenerator_WD.rb:34:in `block in <top (required)>'
-e:1:in `call'


As a side note, would it be possible to have a setting for bevel size?
Like if I want half or even a quarter of the size of the bevel.
And some min and max distance of the random imperfections?
I think both are a litte too big for most cases.


The error is occurring when the defaults are being read so use the "Reset" option first and hopefully that will clear up the problem.

I will consider your request as time permits.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby Mra » Mon Sep 22, 2014 7:24 am

I think there is a bug in the newest verision. On a rectangle it was complaining about non planar faces, even though this was off a box with sketchup box primitive.

Reverting back a version, I was then able to generate a wooden pattern on the same object.
0

Mra 
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby sdmitch » Mon Sep 22, 2014 3:04 pm

mra wrote:I think there is a bug in the newest verision. On a rectangle it was complaining about non planar faces, even though this was off a box with sketchup box primitive.

Reverting back a version, I was then able to generate a wooden pattern on the same object.


I have experienced the same problem with wood on vertical faces. I can't imagine why but will try to sort it out.

Thanks for the heads up
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby sdmitch » Mon Sep 22, 2014 8:40 pm

Problem has been fixed. :mrgreen: Quality control and testing director has been severely punished. :puke:
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby Mra » Tue Sep 23, 2014 12:36 am

No problem. Thank YOU for such a cool plugin. Can't release images now, but having fun decorating inside of a cafe with wooden panels everywhere. I recommend everyone your plugins.
0

Mra 
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby deaneau » Sat Sep 27, 2014 10:38 am

Hello,
i would design a special ground with your plugin

here 3 pictures

is this possible with your plugin?

Translation for the picture

A: Big Corner Part
B: Sidewalk Main Part
C Small Corner Part
D: Bishop's cap

measure in cm

25cm=9.8425in
35cm=13.7795in
49,5cm=19.4881in

Gap 1cm=0.3937in

This is a part of a typical sidewalk in Berlin

here a german wiki page

http://de.wikipedia.org/wiki/Pflaster_(Belag)

Thank you

Dean



Foto.JPG

_2014.09.27_10h56m14s_007_00977.jpg

Foto 800x.jpg
-1
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby sdmitch » Sat Sep 27, 2014 2:58 pm

It might be possible, in part at least, for a perfect size face but doubtful for a random size face. I'll see what I can do.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby deaneau » Sat Sep 27, 2014 3:24 pm

sdmitch wrote:It might be possible, in part at least, for a perfect size face but doubtful for a random size face. I'll see what I can do.

that would be great,
if you need a sketchup file i can send this via PM

can i use this in a curve,too?

thank you dean
0
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby sdmitch » Sat Sep 27, 2014 5:59 pm

deaneau wrote:
sdmitch wrote:It might be possible, in part at least, for a perfect size face but doubtful for a random size face. I'll see what I can do.

that would be great,
if you need a sketchup file i can send this via PM

can i use this in a curve,too?

thank you dean


Please do. I hate trying to guess.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Updated 21-Sep-2014)

Postby deaneau » Sat Sep 27, 2014 6:57 pm

Suggestion for different Texture Packs.

what do you think about different texture pack.

in the texture folder i have different folders with diferent textures.
this could be selected via dropdown.

thank you Dean
0
MADE, BORN AND LIVING IN BERLIN
Big Thank You to all Programmers
Some German words are so long that they have a perspective. M.Twain
User avatar
deaneau 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

cron

Who is online

Users browsing this forum: Arkhidezeau, hellwildboy, lackaday and 12 guests

Visit our sponsors: