[Plugin] Front Face - 1.2

Re: [Plugin] Front Face - 1.1

Postby tomasz » Sun Dec 06, 2009 5:00 pm

Hi Gaieus,
The option of having back material reset to default looks nice.
I am currently terribly busy, but Christmas is coming.
I will put it on my list.

Tomasz
0
Last edited by tomasz on Sun Dec 06, 2009 5:05 pm, edited 1 time in total.

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Front Face - 1.1

Postby TIG » Sun Dec 06, 2009 5:01 pm

In the meanwhile, before it gets written into something better - to make ALL rear faces in the model [and faces inside definitions too] have the default material on their backs, just copy and paste this line of code into the Ruby Console - I compressed it into one line for ease of pasting...
Code: Select all
m=Sketchup.active_model;es=m.entities;es.each{|e|e.back_material=nil if e.class==Sketchup::Face};ds=m.definitions;ds.each{|d|d.entities.each{|e|e.back_material=nil if e.class==Sketchup::Face}};return nil
0
Last edited by TIG on Sun Dec 06, 2009 11:35 pm, edited 2 times in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Front Face - 1.1

Postby thomthom » Sun Dec 06, 2009 5:08 pm

:D
I'd added the feature to Remove Materials. Will post it later.
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] Front Face - 1.1

Postby tomasz » Sun Dec 06, 2009 5:10 pm

Boofredlay wrote:Any progress on changing the cursor Tomasz?
I am using it today and was just curious. Handy tool BTW.

Checked the API. It looks easy...
0

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Front Face - 1.1

Postby Gaieus » Sun Dec 06, 2009 9:39 pm

Guys, I am amazed at the helpfulness of all of you.

Once I win this combpetition, I hope you will all come and enjoy the party.
;)

(BTW I am planning a difficult plugin - you will hate me...)
0
User avatar
Gaieus 
 

Re: [Plugin] Front Face - 1.2

Postby tomasz » Mon Dec 07, 2009 6:15 pm

Ok. I said I was busy, but I had to refresh my memory, how to write a Tool in SU, so played with FrontFace and here we go:
Version 1.2 is ready.

Greetings
Tomasz
0

tomasz 
SU2TH & SU2KT Developer
 

Re: [Plugin] Front Face - 1.2

Postby boofredlay » Mon Dec 07, 2009 8:15 pm

Beautiful. Thank you. :thumb:
0
User avatar
boofredlay 
Global Moderator
 

Re: [Plugin] Front Face - 1.1

Postby Ecuadorian » Mon Dec 07, 2009 8:29 pm

TIG wrote:to make ALL rear faces in the model [and faces inside definitions too] have the default material on their backs, just copy and paste this line of code into the Ruby Console - I compressed it into one line for ease of pasting...
Code: Select all
m=Sketchup.active_model;es=m.entities;es.each{|e|e.back_material=nil if e.class==Sketchup::Face};ds=m.definitions;ds.each{|d|d.entities.each{|e|e.back_material=nil if e.class==Sketchup::Face}};return nil

TIG, this is probably one of the most useful pieces of code ever. Thank you very much. :thumb:
0

Ecuadorian 
 

Re: [Plugin] Front Face - 1.2

Postby Fletch » Mon Dec 07, 2009 10:15 pm

TIG, does it also make all groups and components have the default material? (in case one or two got accidentally painted somehow?)
0

Fletch 
Twilight Render
 

Re: [Plugin] Front Face - 1.2

Postby Ecuadorian » Mon Dec 07, 2009 10:42 pm

Fletch, Matthieu Noblet wrote a plugin for that:
http://forums.sketchucation.com/viewtop ... 23#p102323
0

Ecuadorian 
 

Re: [Plugin] Front Face - 1.2

Postby TIG » Mon Dec 07, 2009 11:09 pm

Fletch wrote:TIG, does it also make all groups and components have the default material? (in case one or two got accidentally painted somehow?)

No, it fixes back_materials inside them, but not materials applied to them - to do that you need this line...
Code: Select all
Sketchup.active_model.definitions.each{|d|d.instances.each{|i|i.material=nil}}

:ugeek:
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Front Face - 1.2

Postby Royvas » Thu Aug 12, 2010 10:13 pm

gosh thank you so much for this :) works great
0

Royvas 
 

Re: [Plugin] Front Face - 1.2

Postby alvis » Sun Oct 24, 2010 10:54 am

Thanks
Tomasz :berserk:
0
User avatar
alvis 
Premium Member
Premium Member
 

Re: [Plugin] Front Face - 1.2

Postby Zacchia » Sat Nov 27, 2010 8:58 am

Hi Tomasz
I have found now this plugin!! This is fantastic. Thanks a lot!
0

Zacchia 
 

Re: [Plugin] Front Face - 1.2

Postby Zacchia » Tue Dec 21, 2010 5:00 pm

Thomasz
It seams that when material is on normal face and i use this plugin then material will be default SU material when turned the faces. Why is it like this? I think it should keep material and just turn faces.
0

Zacchia 
 

Re: [Plugin] Front Face - 1.2

Postby Jrudd » Tue Jan 25, 2011 3:09 pm

Hi all,

Proud to announce that there is finally a solution to the face flipping problem. You can now reverse faces and preserve UV coordinates! I tested it and the results are accurate!

The UV Toolkit makes it possible. You also need to download the TT_Lib and put it in your plugins folder.

To reverse a face, first select what you want reversed, then go to Plugins > UV Toolkit > Frontface material to Backface (or the opposite).

Hope it helps,
Jeremy
0

Jrudd 
 

Re: [Plugin] Front Face - 1.2

Postby simoni » Wed Jul 20, 2011 11:42 am

I find it works 50% of the time, sometimes textures are mapped wrongly, maybe I am doing something wrong?
0

simoni 
 

Re: [Plugin] Front Face - 1.2

Postby Need2SeeAttachments » Mon Jan 21, 2013 9:31 pm

LOOK AT MY USER NAME, ENOUGH SAID. Need2SeeAttachments.
I WANT TO DOWNLOAD, NOW BYE FOREVER SKETCHUCATION.
Meant no offence, k thx bai.
0

Need2SeeAttachments 
 

Re: [Plugin] Front Face - 1.2

Postby thomthom » Tue Jan 22, 2013 9:54 am

Bye bye.
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] Front Face - 1.2

Postby desunvn » Thu May 02, 2013 3:57 am

Thank you for plugin this
0

desunvn 
 

Re: [Plugin] Front Face - 1.2

Postby dancho » Fri Oct 11, 2013 9:20 am

Hi Tomasz,

I was installed Fredo Additional Plugin folder plugin viewtopic.php?p=345150#p345150
and have a problem with finding icons if I use your plugin in another dir.

Its only work with Sketchup 2013/Plugins place. Can you look at this?

Regards,
Daniel
0
User avatar
dancho 
Premium Member
Premium Member
 

Re: [Plugin] Front Face - 1.2

Postby TIG » Fri Oct 11, 2013 9:58 am

dancho wrote:Hi Tomasz,

I was installed Fredo Additional Plugin folder plugin viewtopic.php?p=345150#p345150
and have a problem with finding icons if I use your plugin in another dir.

Its only work with Sketchup 2013/Plugins place. Can you look at this?

Regards,
Daniel
This is an old script...
You are unlikely to get it chnaged now...
BUT you can adjust the tool's code yourself.
It is quite easy...
Open the file frontface.rb using Notepad, or another plain text editor like Notepad++ - BUT NEVER USE a word-processor!

Near the beginning there are three lines that setup the button icons [#36/40/44]
The first line reads:
cursor_path = Sketchup.find_support_file("FrontFaceCursor.png", "Plugins/FrontFace_files")
You must rewrite it to read:
cursor_path = File.join(File.dirname(__FILE__), "FrontFace_files", "FrontFaceCursor.png")
so it now looks in a folder named FrontFace_files that is in the folder with the .rb file [wherever that is located], rather than always the main Plugins folder as the original code sets.
The other two entries for cursor_path = need to be similarly recast, using:FrontFaceCursorOff and FrontFace_OnDef for the .png respectively...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Front Face - 1.2

Postby dancho » Fri Oct 11, 2013 12:39 pm

Hi TIG,
thanks for help, I do it like you wrote



class FrontFaceTool

def initialize
@ip = Sketchup::InputPoint.new

cursor_path = File.join(File.dirname(__FILE__) ,"FrontFace_files","FrontFaceCursor.png"
if cursor_path
@cursor_on = UI.create_cursor(cursor_path, 12, 12)
end


cursor_path = File.join(File.dirname(__FILE__) ,"FrontFace_files","FrontFaceCursorOff.png"
if cursor_path
@cursor_off = UI.create_cursor(cursor_path, 12, 12)
end


cursor_path = File.join(File.dirname(__FILE__) ,"FrontFace_files","FrontFace_OnDef.png"
if cursor_path
@cursor_on_def= UI.create_cursor(cursor_path, 12, 12)
end
end

and receive this error message, have you any idea?

THX
Dancho
0
User avatar
dancho 
Premium Member
Premium Member
 

Re: [Plugin] Front Face - 1.2

Postby TIG » Fri Oct 11, 2013 2:09 pm

You have mistyped.
It should be:
cursor_path = File.join(File.dirname(__FILE__), "FrontFace_files", "FrontFaceCursor.png")
The error message tells you the error...
Add the final ) to the three lines and it will work OK...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Front Face - 1.2

Postby samothrace41 » Sat Dec 21, 2013 5:25 pm

A great THANK YOU Tomasz !!!
0

samothrace41 
 

Re: [Plugin] Front Face - 1.2

Postby tcalvinsimmons » Wed Jan 21, 2015 7:50 pm

Is the current FaceFront ruby current with SU 2015 version? I downloaded it and installed it in my Plug in file but it doesn't show up. Any thoughts
0

tcalvinsimmons 
 

Re: [Plugin] Front Face - 1.2

Postby Dave R » Thu Jan 22, 2015 1:02 pm

tcalvinsimmons wrote:Is the current FaceFront ruby current with SU 2015 version? I downloaded it and installed it in my Plug in file but it doesn't show up. Any thoughts


Hi Tom,

Small world. ;)

So did you try installing it with the SCF PluginStore plugin? Or did you download the file as .rbz from here?
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 8 guests

Visit our sponsors: