Isotropix Forums

FMX 2018: Substance painter Script

General Discussion about Isotropix and CG related topics

FMX 2018: Substance painter Script

Unread postby mdhrechka » Sat Jun 02, 2018 4:48 pm

Hey Clarisse Team,

You guys had an awesome video at FMX 2018 showcasing substance to Clarisse, and in that video there was a script that you guys used to import all the maps files accordingly. Is it possible if you guys could share that script for us non scripters out there so we can reference it?

Much appreciated!

Michael Hrechka
-comp artist
mdhrechka
 
Posts: 3
Joined: Fri Sep 29, 2017 4:52 pm

Re: FMX 2018: Substance painter Script

Unread postby cnoellert » Sat Jun 02, 2018 6:15 pm

Hello all,

+1 for posting the script... I was just about to sit down and try to write something similar and it would be a great thing to not only use but to also pick apart and learn from.

Best,
Chris
cnoellert
 
Posts: 1
Joined: Fri Mar 30, 2018 4:54 am

Re: FMX 2018: Substance painter Script

Unread postby Emmanuel_Cambier » Sat Jun 02, 2018 7:32 pm

I totally second Michael in this request, this script seems immensely useful, and it would be great to study it from up close.
Emmanuel_Cambier
 
Posts: 11
Joined: Tue Mar 27, 2018 6:53 am

Re: FMX 2018: Substance painter Script

Unread postby zjshooter » Sun Jun 03, 2018 6:38 am

substance painter Script very very very cool!
zjshooter
 
Posts: 4
Joined: Fri May 19, 2017 4:40 pm

Re: FMX 2018: Substance painter Script

Unread postby bruce » Mon Jun 04, 2018 9:05 am

Hi Guys !

Here it is ! enjoy !

Cheers !
Attachments
SubstanceTemplateGenerator .py
(7.77 KiB) Downloaded 199 times
Bruce
Isotropix
Technical Artist - Clarisse Specialist
User avatar
bruce
 
Posts: 206
Joined: Fri May 20, 2016 11:11 am

Re: FMX 2018: Substance painter Script

Unread postby Emmanuel_Cambier » Mon Jun 04, 2018 12:51 pm

You guys Rock !!!
Emmanuel_Cambier
 
Posts: 11
Joined: Tue Mar 27, 2018 6:53 am

Re: FMX 2018: Substance painter Script

Unread postby bvaldes » Mon Jun 04, 2018 2:06 pm

Hi,
To make it work, you have to have a precise hierarchy folders:

Map_folder(the name does't matter)/
Asset_Name/
Map1
Map2
Map...

When you will run the script you will have to select the Map_folder (or the name you gave to this folder).
You have to import the asset as obj too: line 138 of the script say that it only affect "GeometryPolyFile" which are OBJ or LWO files.

If you need more help, feel free to ask.
Benoit VALDES
Isotropix
Clarisse QA
User avatar
bvaldes
 
Posts: 384
Joined: Mon Sep 26, 2016 10:44 am

Re: FMX 2018: Substance painter Script

Unread postby zjshooter » Mon Jun 04, 2018 3:06 pm

thx!Clarisse Team.
zjshooter
 
Posts: 4
Joined: Fri May 19, 2017 4:40 pm

Re: FMX 2018: Substance painter Script

Unread postby 451549728 » Mon Jun 04, 2018 5:51 pm

I used this script, but I had some problems.
import obj file,then open this script and select my texture file path, generate a folder '_substanceTemplate' , but model not material and tex.
this material "Substance_Painter_Template_MTL" in '_substanceTemplate' folder, assgin to model and it's black.nothing.
i don't know, where is wrong?
451549728
 
Posts: 2
Joined: Fri Jan 25, 2013 11:33 pm

Re: FMX 2018: Substance painter Script

Unread postby gjennings » Tue Jun 05, 2018 9:04 am

Hi,

this is the hierarchy you need to use:

<Main Textures Folder>\<Name of the asset folder>\<Name of the Asset_Name of the shading Group_Component.file extension>

So, for the Diffuse map of the shading group "Arms" of an asset named "Robot" it would look like this:

Maps\Robot\Robot_Arms_Diffuse.exr

When you run the script and it prompts you for the folder, choose the main textures folder, in this case "Maps" (it could be named anything you want......"Textures", "Surfacing", "Maps"..)

Cheers,
Greg
User avatar
gjennings
 
Posts: 150
Joined: Sun Feb 28, 2016 5:53 am

Next

Return to General Discussion