Script to get around geograft issues
Posted: Sat Jul 05, 2014 3:45 pm
I've been fumbling with a script to "fix" geografting issues, where you can't apply you templated materials without the material assignment going crazye. It seems to work now, so I thought I would share. It's a Linux script, so your mileage may vary.
I'm running it on windows, using cygwin, which is a very simple way to get Linux bash scripting on windows.
The idea is as follows:
Create a target model with the geo graft in place. This model must have autogenerated materials from octane. The materials don't matter, you can keep them as white defaults if you want to. Save this as a scene subset, name it target or similar, as this will be the target model for your materials.
Now set up the materials like you want them on two models:
Host figure: Host without geograft in place, with your custom materials. Save this as a scene subset, name it source1 or similar
Graft: This is just the geograft model, with your custom materials. Save this as a scene subset, name it source2 or similar
Run the script. Syntax is
./convert -s1 source1.duf -s2 source2.duf -t target.duf
This will write a new .duf called target_convereted.duf or similar. It will move the materials from the source models to the target model:

Limitations:
You still can't drag and drop materials into your new model. It's locked with the materials you assigned to your sources. You can still change things like settings and images though.
This is very much a test alpha thing, so let me know how wrong it goes. I'll implement some more error checking later.
Download here, OctaGraft 0.21:
https://drive.google.com/file/d/0B2Dqt4 ... sp=sharing
I'm running it on windows, using cygwin, which is a very simple way to get Linux bash scripting on windows.
The idea is as follows:
Create a target model with the geo graft in place. This model must have autogenerated materials from octane. The materials don't matter, you can keep them as white defaults if you want to. Save this as a scene subset, name it target or similar, as this will be the target model for your materials.
Now set up the materials like you want them on two models:
Host figure: Host without geograft in place, with your custom materials. Save this as a scene subset, name it source1 or similar
Graft: This is just the geograft model, with your custom materials. Save this as a scene subset, name it source2 or similar
Run the script. Syntax is
./convert -s1 source1.duf -s2 source2.duf -t target.duf
This will write a new .duf called target_convereted.duf or similar. It will move the materials from the source models to the target model:

Limitations:
You still can't drag and drop materials into your new model. It's locked with the materials you assigned to your sources. You can still change things like settings and images though.
This is very much a test alpha thing, so let me know how wrong it goes. I'll implement some more error checking later.
Download here, OctaGraft 0.21:
https://drive.google.com/file/d/0B2Dqt4 ... sp=sharing