Batch Processing Models

   2402   4   0
User Avatar
Member
134 posts
Joined: Sept. 2018
Online
Hey Everyone,

So I have a ton of models I want to resize, rotate and export automatically. All I need is a way to automatically look up paths on a hard drive and run the process I created to resize them, rotate, and export them.

for example the path might look like:
S:\PROJECTS\Project_01\Models\Big_Ball_01\Assets\Final\Big_Ball_01_LOD0.obj
S:\PROJECTS\Project_01\Models\Big_Ball_02\Assets\Final\Big_Ball_02_LOD0.obj
S:\PROJECTS\Project_01\Models\Big_Ball_03\Assets\Final\Big_Ball_03_LOD0.obj
S:\PROJECTS\Project_01\Models\Big_Ball_04\Assets\Final\Big_Ball_04_LOD0.obj

How do I change the file node to automatically change to a different path after one is exported?
Edited by VGriffith - July 27, 2021 14:10:13
User Avatar
Member
813 posts
Joined: Feb. 2017
Offline
VGriffith,

one easy way is to replace 01, 02, 03, with $F2 in your file in (read) and in your filecache node(write).
That is the current frame $F with a padding of 2.

so in your case:
`S:\PROJECTS\Project_01\Models\Big_Ball_`$F2`\Assets\Final\Big_Ball_`$F2`_LOD0`.obj

Cheers
CYTE
Edited by CYTE - July 27, 2021 14:13:57
User Avatar
Member
134 posts
Joined: Sept. 2018
Online
CYTE
VGriffith,

one easy way is to replace 01, 02, 03, with $F2 in your file in (read) and in your filecache node(write).
That is the current frame $F with a padding of 2.

so in your case:
`S:\PROJECTS\Project_01\Models\Big_Ball_`$F2`\Assets\Final\Big_Ball_`$F2`_LOD0`.obj

Cheers
CYTE

Doesn't look as though the `$F2` is working as intended when it comes to the obj file. It is resolving as:

S:\PROJECTS\Project_01\Models\Big_Ball_01\Assets\Final\Big_Ball_1_LOD0.obj
Edited by VGriffith - July 27, 2021 14:26:53
User Avatar
Member
134 posts
Joined: Sept. 2018
Online
I need the padding of 2 for this to work. So it would need to be 01, 02, 03, etc.
Edited by VGriffith - July 27, 2021 14:31:45
User Avatar
Member
134 posts
Joined: Sept. 2018
Online
GOT IT! So what I did was create a Null, right clicked on the Null and edited the parameters and added a string and typed $F2 into the box and referenced that in the spot for the file name.

Big_Ball_`chs("../Frame/newparameter")`_LOD0.obj

Resolves to Big_Ball_01_LOD0.obj

SO PUMPED!
Edited by VGriffith - July 27, 2021 15:10:04
  • Quick Links