Skip to content

Commit 368a18e

Browse files
Improved the readme
1 parent cc90661 commit 368a18e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,26 @@ Here are the steps on how to do that in Maya:
6565

6666
![Alt text](images/optimizedsphere.png?raw=true "Optimized sphere")
6767

68+
##Job cleaning
69+
The job management section of the script allows you to move textures, clean out duplicates, create layers and break apart LODs. If this is all you're interested in you can just use the data folder of the scripts. Starting process by calling runJob on SimplygonJob. This will create data structures for all the textures, materials and objects that was created during job and also give you some actions you can apply to them.
70+
Here is a small sample script that utilizes that functionality:
71+
```
72+
import sys
73+
sys.path.append( 'c:/Work/GitHub/MayaPythonUI/scripts/data' )
74+
from simplygonjob import SimplygonJob
75+
from processdirectives import ProcessDirectives
76+
77+
job = SimplygonJob()
78+
directives = ProcessDirectives()
79+
directives.settingFile = "c:/Work/GitHub/MayaPythonUI/settings/Character 3 LODs.ini"
80+
directives.batchMode = True
81+
directives.useWeights = False
82+
job.runJob(directives)
83+
#Clean out any duplicates
84+
job.pruneTexturesAndMaterials()
85+
```
86+
87+
6888

6989
##Instructions to create your own settings and XML
7090
After you have created a number of presets (.ini files) through the Simplygon interface you need to create an XML file to wrap the setting files. An example can be viewed in the Settings folder of the repository.

images/overview.png

-88.9 KB
Loading

0 commit comments

Comments
 (0)