Material attribute copy script

Post any tutorial and tools you might find it useful for other creators.
User avatar
davidzoli
Posts: 3226
Joined: 22 Jun 2014 10:08
Location: Budapest, Hungary
Contact:

Re: Material attribute copy script

#11 Post by davidzoli » 29 Dec 2015 13:11

Here's a huge update!

Download here: https://github.com/davidzoli/SCSBT-helper
A short video about its functions
https://www.youtube.com/watch?v=xNQrXoJL8G4
Image

User avatar
MDModder
Posts: 901
Joined: 06 Nov 2015 07:00

Re: Material attribute copy script

#12 Post by MDModder » 30 Dec 2015 19:28

Very nice thank you.

User avatar
MDModder
Posts: 901
Joined: 06 Nov 2015 07:00

Re: Material attribute copy script

#13 Post by MDModder » 30 Dec 2015 19:40

slot conversion problem

Image

User avatar
davidzoli
Posts: 3226
Joined: 22 Jun 2014 10:08
Location: Budapest, Hungary
Contact:

Re: Material attribute copy script

#14 Post by davidzoli » 02 Jan 2016 11:39

A picture is not enough :)
What it did or not did during the operation?
Image

User avatar
CristianoH125
Posts: 2480
Joined: 01 Jul 2014 13:26
Location: Portugal

Re: Material attribute copy script

#15 Post by CristianoH125 » 19 Jan 2016 11:52

Im having dificulties with this.
What is the file and where do i put it ?
What a Lovely Day... !

User avatar
davidzoli
Posts: 3226
Joined: 22 Jun 2014 10:08
Location: Budapest, Hungary
Contact:

Re: Material attribute copy script

#16 Post by davidzoli » 19 Jan 2016 12:31

Put the py file into blender's addon folder and activate it.
Same as you did with the Blender Tools and Blender2SCS addons
Image

User avatar
CristianoH125
Posts: 2480
Joined: 01 Jul 2014 13:26
Location: Portugal

Re: Material attribute copy script

#17 Post by CristianoH125 » 19 Jan 2016 18:37

It worked thanks, but now another problem

Code: Select all

material : "eut2.dif.spec" {
	texture[0] : "/vehicle/truck/50k_r_high/textures/nomer.tobj"
	texture_name[0] : "texture_base"
	add_ambient : 0
	aux[1] : { 0.0 , 0.0 }
	diffuse : { 0.5 , 0.5 , 0.5 }
	shininess : 95
	specular : { 0.4 , 0.4 , 0.4 }
}
Original material from blender 2scs

material : "eut2.dif.spec.fx" {
	texture[0] : "/vehicle/truck/50k_r_high/textures/nomer.tobj"
	texture_name[0] : "texture_base"
	shininess : 95
	specular : { 0.4 , 0.4 , 0.4 }
	diffuse : { 0.735357 , 0.735357 , 0.735357 }
	reflection : 0
	add_ambient : 0
}
Blender tools export with your material attribute copy script, it seams that diffuse value isnt working corret.
Im doing something wrong ?
What a Lovely Day... !

User avatar
davidzoli
Posts: 3226
Joined: 22 Jun 2014 10:08
Location: Budapest, Hungary
Contact:

Re: Material attribute copy script

#18 Post by davidzoli » 19 Jan 2016 20:01

I checked and it's ok for me. You didn't hit the "Update RGB to Linear" button, did you.
You have to push only the "Convert Material for BT" button once on the Material tab.
Image

User avatar
Voxelfox
Posts: 485
Joined: 04 Mar 2014 18:19
Location: Germany

Re: Material attribute copy script

#19 Post by Voxelfox » 09 Apr 2016 13:51

Thank you david for this great script, makes conversion way easier :)
Image

User avatar
salessio2
Posts: 1435
Joined: 26 May 2015 23:24
Location: Italy
Contact:

Re: Material attribute copy script

#20 Post by salessio2 » 18 May 2016 16:00

davidzoli wrote:Put the py file into blender's addon folder and activate it.
Same as you did with the Blender Tools and Blender2SCS addons
Must i only put the .py file in addom and activate it writing "help" in addon page?
ImageImageImageImageImage

Post Reply

Return to “User Tutorials & Tools”

Who is online

Users browsing this forum: No registered users and 1 guest