-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #437 from BradyAJohnston/dev-materials
update with default materials
- Loading branch information
Showing
8 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import os | ||
import zipfile | ||
|
||
|
||
# zips up the template file | ||
def zip_template(): | ||
# Define the directory and zip file paths | ||
dir_path = 'molecularnodes/assets/template/Molecular Nodes' | ||
zip_file_path = 'molecularnodes/assets/template/Molecular Nodes.zip' | ||
|
||
# Create a ZipFile object in write mode | ||
with zipfile.ZipFile(zip_file_path, 'w', zipfile.ZIP_DEFLATED) as zipf: | ||
# Walk the directory tree and add files to the zip file | ||
for root, dirs, files in os.walk(dir_path): | ||
for file in files: | ||
# Get the path of the file | ||
file_path = os.path.join(root, file) | ||
# Add the file to the zip file | ||
zipf.write(file_path, arcname=os.path.relpath( | ||
file_path, start='molecularnodes/assets/template/')) | ||
|
||
|
||
if __name__ == "__main__": | ||
zip_template() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+2.09 MB
(290%)
molecularnodes/assets/template/Molecular Nodes/startup.blend
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters