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?
Batch Processing Models
1411 4 0- VGriffith
- Member
- 128 posts
- Joined: 9月 2018
- Offline
- CYTE
- Member
- 679 posts
- Joined: 2月 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:
Cheers
CYTE
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 - 2021年7月27日 14:13:57
- VGriffith
- Member
- 128 posts
- Joined: 9月 2018
- Offline
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 - 2021年7月27日 14:26:53
- VGriffith
- Member
- 128 posts
- Joined: 9月 2018
- Offline
- VGriffith
- Member
- 128 posts
- Joined: 9月 2018
- Offline
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!
Big_Ball_`chs("../Frame/newparameter")`_LOD0.obj
Resolves to Big_Ball_01_LOD0.obj
SO PUMPED!
Edited by VGriffith - 2021年7月27日 15:10:04
-
- Quick Links