[Plugin] QuadFaceTools

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 14, 2011 6:57 pm

McGyver wrote:3-I made a small 4 sided plane and applied (to it) the material I'd like to use on the sphere. I did this to be sure the material was definitely being "used" and SU knew it was there... in pervious tries I just loaded the material and selected it without it being used in anything else and it did not work... when looking at the video (the first video) I noticed one of the models in the background may have had the material being used, applied to it, so I figured it probably won't hurt and might be required for it to work right...

Yea, the material must be in the model already, because Ruby plugins cannot address materials from the libraries. I thought the user would get a messagebox about this. I'll look into that.

McGyver wrote:8-It then does the red and green lines on the surface of the model and nothing else... From the video I assume the material should mapped onto the surface and now all I have to do is scale it using the green and red "handles"... I notice in the video the tool now tells you to "set U and V mapping scale"... I get no such message.

Do you get an error message in the console at that point instead?


McGyver wrote:4-Since this was an experiment to see how to use the plugin I saved the file at this point so I would not have to repeat the whole process if SU crashed (which it did several times while doing this) or if the attempt fails.

McGyver wrote:While experimenting, SU crashes about 4 out of 10 tries... each "try" being opening up the file, failing to get the result and closing the file without saving and re-opening it. At some point during or just after the process there is a crash.

What part of the process are you referring to? You get a crash when closing the model?

McGyver wrote:Also this is the most common message I get in the ruby console:

Most common - are there more? Error messages are some of the most useful bit of information I can get to work with. Please post any that might appear - as there should be none.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby pbacot » Mon Nov 14, 2011 8:42 pm

It works when you use the middle mouse button to orbit. Does the UV Mapping tool behave differently from other tools? I mean, how do you return to the tools if you explicitly activate the Orbit tool?




Thom If I may interject, I cannot use the middle button that way. However if I choose orbit drawing a line for example, then choose the line tool again, SU returns to the drawing process where I left off. If you orbit and then re-select the tool icon, this tool starts again at the beginning of the process (though you have the results from the previous try). So it IS different in that way, on a Mac. Peter
0
MacOSX Mojave High Sierra SketchUp Pro v19 Twilight v2 Thea v2 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 14, 2011 10:05 pm

hmm... will have to look into that.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Tue Nov 15, 2011 5:10 am

thomthom wrote:
McGyver wrote:Error: #<TypeError: nil can't be coerced into Float>
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `/'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:856:in `point_on_axis'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:386:in `activate'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `push_tool'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1126:in `onLButtonDown'


When do you get this?

Also, are you using v0.6?


McGyver wrote:Actually the only thing that appears different is that I can't rotate around the model while in "scale texture" mode... if I choose the rotate tool, it leaves scale mode and I'm stuck with whatever it was at when it dropped it.

It works when you use the middle mouse button to orbit. Does the UV Mapping tool behave differently from other tools? I mean, how do you return to the tools if you explicitly activate the Orbit tool?

(I assume you meant Orbit tool when you said Rotate tool...)



Answers:
1- After the operation has failed... This is the message that appears in the ruby console. I usually close the model after that, so there are no other messages in regards to that attempt/session.

2- No I am using the previous version. based on what was written it seemed either version would work for what I wanted to do.

3- I forgot that the middle mouse button can do that (I read that somewhere and thought "Really?... cool I've got to remember that!" and promptly forgot it)... I just checked it and it works properly with the UV Mapping tool in SU6... and probably in 8 too... it did not map the sphere but I could orbit the model without loosing the scaling lines (Red and Green)...

4-Yes, I did mean Orbit... that was pretty stupid of me.
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Tue Nov 15, 2011 5:52 am

thomthom wrote:
McGyver wrote:8-It then does the red and green lines on the surface of the model and nothing else... From the video I assume the material should mapped onto the surface and now all I have to do is scale it using the green and red "handles"... I notice in the video the tool now tells you to "set U and V mapping scale"... I get no such message.

Do you get an error message in the console at that point instead?


McGyver wrote:4-Since this was an experiment to see how to use the plugin I saved the file at this point so I would not have to repeat the whole process if SU crashed (which it did several times while doing this) or if the attempt fails.

McGyver wrote:While experimenting, SU crashes about 4 out of 10 tries... each "try" being opening up the file, failing to get the result and closing the file without saving and re-opening it. At some point during or just after the process there is a crash.

What part of the process are you referring to? You get a crash when closing the model?

McGyver wrote:Also this is the most common message I get in the ruby console:

Most common - are there more? Error messages are some of the most useful bit of information I can get to work with. Please post any that might appear - as there should be none.



Answers:

1- Yes that is the point where it gives the error message. Since I usually end the session and reopen the model, that is the last message.

2- The crash can come at any time... I've had it crash when selecting the UV mapping tool, choosing the quadface tool's select tool, selecting an edge for V direction... even when zooming in (using the middle mouse button scroll wheel). One thing I noticed is if I don't close the model after a mapping attempt fails, SU8 becomes more unstable... some of the Quadface tools (like the select tool and the smooth or unsmooth tools) stop working and little things like orbiting or erasing something will cause a crash...
This does not happen in SU6.

3- Yes, once or twice it crashed when closing, but that almost seemed random in regards to the other crashes.


4-There were two other messages... I'm pretty sure I had tried some variation (like maybe smoothing and unsmoothing the model before I chose the UV mapping tool) when I got the other messages... So the message I listed is probably THE message I get when doing it the way I described... (actually I just tried it five times in SU8 and got the same message each time).



I'd just like to say I'm VERY happy I can get this GREAT plugin to work in SU6... I have no problem going back and forth between SU6 and SU8... I do it all the time... some plugins just work better in either 6 or 8... so no worries! I'd also like to add that I a went and mapped several lathed models that were made using the "follow me" tool and they worked perfectly... but once again only in SU6. I could not map them in 8.
Thanks again for this wonderful plugin and all your help!
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Tue Nov 15, 2011 8:39 am

McGyver wrote:2- No I am using the previous version. based on what was written it seemed either version would work for what I wanted to do.

No - please, before trying to debug this any further, update to the latest version of the plugin. (Currently 0.6) I'll be impossible for me to debug against older versions. There's all kinds of fixes etc between versions. You should always keep your software - especially when you experience problems with it.

Update, see if you still have problems. Then we can start looking into anything that might appear.

McGyver wrote:I'd just like to say I'm VERY happy I can get this GREAT plugin to work in SU6... I have no problem going back and forth between SU6 and SU8... I do it all the time... some plugins just work better in either 6 or 8... so no worries! I'd also like to add that I a went and mapped several lathed models that were made using the "follow me" tool and they worked perfectly... but once again only in SU6. I could not map them in 8.
Thanks again for this wonderful plugin and all your help!

This plugin should work best in SU8. Jumping out to SU6 is no solution. Get back to me after updating if there are issues.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Tue Nov 15, 2011 8:11 pm

I updated the the plugin. For Me there seems to be no change. I copied the Ruby Console message again:

Error: #<TypeError: nil can't be coerced into Float>
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:857:in `/'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:857:in `point_on_axis'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:387:in `activate'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1129:in `push_tool'
/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/TT_QuadFaceTools/uv_mapping.rb:1129:in `onLButtonDown'

After the above attempt I closed the model and tried again... I noticed that if I clicked on the red or green lines, the scaling handles would appear... they don't do anything... but moving them a tiny bit them generates a very large amount of error messages in the ruby console. I don't know if it is of any use but I copied it to a TextEdit file and I am including it with this post. I did not think it would make sense to fill up a huge amount of space in this thread.
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Tue Nov 15, 2011 8:55 pm

McGyver wrote:I updated the the plugin. For Me there seems to be no change.

Trust me, there's lots of changes under the hood. And now the error messages will refer to the correct code which I sit with.


Still not sure why you're getting these errors... it seem similar to some error in 0.3 or 0.4, but I thought I had trapped that and I'd not gotten any report since then...

Can you try one thing: when activating the UV tool and after picking the U and V axis, right click and choose Use Material Size ?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Wed Nov 16, 2011 9:33 am

I am using this nice plugin for texturing curtains. It works well in most cases but in this case I have big problems with the mesh. I doesn't map properly. Could you tell me what I have done wrong? I've attached the file below.

the texture should look like this:

0
Last edited by jo-ke on Wed Nov 16, 2011 9:35 am, edited 1 time in total.
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Nov 16, 2011 9:35 am

That message indicates that the mesh got poles in it - that the mesh cannot be mapped to a 2d grid. What the UV mapping tool does is map all the quads to a 2d grid co-ordinate in order to texture seamlessly. That means that any poles in the mesh will prevent that.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Wed Nov 16, 2011 9:38 am

Is there any chance to convert it?

or should I wait for your bezier plugin to create my own curtain?
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Nov 16, 2011 10:01 am

jo-ke wrote:Is there any chance to convert it?

No - poles are a topological feature: http://blenderartists.org/forum/showthr ... post849794

I'll add to the Select Tool an option to highlight poles so one can easily find them.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Wed Nov 16, 2011 11:48 am

Ahhh. I see what the problem is. Thank you for you help.
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Nov 16, 2011 12:45 pm

I started on adding the poles UI for the Select Tool - here's your model:
Poles.png


Green: 5 Poles ( E poles )
Blue: 3 Poles ( N Poles )
Red: More than 5 poles

As you see - the folded up area got quite a few E poles.

How did you make the mesh?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Wed Nov 16, 2011 2:34 pm

Oh thank you.

The mesh was imported as a 3ds model

As I remember, it should have been this one:

http://www.archibase.net/download/c45794ef.html
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Nov 16, 2011 2:46 pm

jo-ke wrote:The mesh was imported as a 3ds model

Did you then use the Convert Triangulated Mesh to Quads function in QuadFace? It's still a bit unreliable - produce some undesired results in some cases. :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby McGyver » Wed Nov 16, 2011 4:21 pm

I just wanted to say that when I said "I updated the the plugin. For Me there seems to be no change." I meant I still had the same results and there was nothing visually different happening on the screen... not that I thought nothing was changed in the plugin, I'm sorry if that sounded bad, that is not what I meant. I am highly appreciative of all the hard work you put into this plugin and the fact that you are kind enough to share it with so many people. The work you and all the other Ruby creators do is truly amazing.


As you suggested I right clicked "Use material size" and..... IT WORKS! It scales properly and I can Flip U and V scale, it shows the U V grid... everything appears to function properly!

I hope I did not miss something and I was not just bothering you with some sort of wild goose chase, having you try and figure out what was wrong when there was nothing wrong at all... If I missed something I'm sorry... I watched the video several times and read through the thread twice before I made that first post... anyway thanks again for this plugin and all the help!
0
User avatar
McGyver 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Nov 16, 2011 4:27 pm

McGyver wrote:As you suggested I right clicked "Use material size" and..... IT WORKS! It scales properly and I can Flip U and V scale, it shows the U V grid... everything appears to function properly!

It might be that the old version triggered a bug and caused it to store some invalid values. If you run into this again let me know as I need to dig more into this.

Thanks for posting back with such detailed information - it really helps.

It is on my to-do list to make a better manual for this tool. I just have a hard time finding spare time to do so at the moment. :(
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Sat Nov 19, 2011 1:25 pm

thomthom wrote:
jo-ke wrote:The mesh was imported as a 3ds model

Did you then use the Convert Triangulated Mesh to Quads function in QuadFace? It's still a bit unreliable - produce some undesired results in some cases. :(


Yes I did. It worked well so far but the texturing wasn't as I expected it.
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby Alan Fraser » Mon Nov 21, 2011 9:50 am

Great set of tools TT...but I appear to be the only one having this problem (unless I've completely missed something). I cannot get the VCB to talk to the HUD in any way whatsoever. When I attempt to edit Connect Edges, the HUD remains firmly on 1 and 0 whatever I type into Measurements. I have the latest version of TTLib installed.
0
FormFonts
Were you required to walk 500 miles? Were you advised to walk 500 more?
You could be entitled to compensation. Call the Pro Claimers now!
User avatar
Alan Fraser 
Top SketchUcator
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 21, 2011 10:08 am

Alan Fraser wrote:Great set of tools TT...but I appear to be the only one having this problem (unless I've completely missed something). I cannot get the VCB to talk to the HUD in any way whatsoever. When I attempt to edit Connect Edges, the HUD remains firmly on 1 and 0 whatever I type into Measurements. I have the latest version of TTLib installed.


The HUD doesn't update until you hit Return/Enter. The HUD is merely there so you can pick what kind of input the VCB control.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby Alan Fraser » Mon Nov 21, 2011 11:43 am

Ah! Thanks for that; I assumed that Enter would activate the settings on the HUD...same as clicking the tick. Another Duhh! moment. :D
0
FormFonts
Were you required to walk 500 miles? Were you advised to walk 500 more?
You could be entitled to compensation. Call the Pro Claimers now!
User avatar
Alan Fraser 
Top SketchUcator
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Mon Nov 21, 2011 1:01 pm

It's not ideal in the way it works. I'm looking to improve it.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Wed Jan 04, 2012 4:28 pm

I'm using this great plugin frequnetly. But in this case I have a problem:

I've tried to convert the mesh to quads. but the result ist still strange.

I wasn't able to texture this easy mesh properly.
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Wed Jan 04, 2012 6:45 pm

jo-ke wrote:I've tried to convert the mesh to quads. but the result ist still strange.

Yes, Convert to Quads does have it's issues and flaws atm. In which case you need to correct it.

Another matter was that it seemed to have been made with an older version - I had to use the "Sandbox Quads to QuadFace Quads" to upgrade the mesh to work with QT 0.6. But as the mesh was irregular I was not able to map it eiter - as mentioned earlier, it needs to be cleaned up.

How did you create the geometry btw? Was it triangulated originally?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby jo-ke » Thu Jan 05, 2012 12:26 am

originally it was a max file, then converted into su8, then saved as su7

the texture should look like this...

tricky thing, these many kinds of meshes....
0
User avatar
jo-ke 
Premium Member
Premium Member
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby lapx » Thu Jan 12, 2012 10:01 pm

I cant get the copy paste method to work for other surface other than flat rectangle shape.
The UV will not select edges on the curved surface. Any hints to what the problem may be?

Thanks Tom!
0

lapx 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Thu Jan 12, 2012 10:06 pm

lapx wrote:The UV will not select edges on the curved surface.

Is the meshes build from quad faces?
Do you have a sample model?


From your screenshot I'm not understanding what you copy from... I see a unmapped curved surface, but no mapped surface, other than the squares...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby lapx » Thu Jan 12, 2012 10:33 pm

I used the same model Fredo provided in previous reply.
oh, and I copied from the largest square.

Thanks Tom
0

lapx 
 

Re: [Plugin] QuadFaceTools (0.6.0b) — 13 November 2011

Postby thomthom » Thu Jan 12, 2012 11:10 pm

lapx wrote:I used the same model Fredo provided in previous reply.
oh, and I copied from the largest square.

Thanks Tom

Got a link? I don't have overview of this threa
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: goga63, Google Bot, Yong Sze Choong and 19 guests

Visit our sponsors: