Wykres commitów

89 Commity (main)

Autor SHA1 Wiadomość Data
Torrin Leonard ad9f8cd3d3 Fixing Offset implementation 2023-01-03 08:50:42 -05:00
Torrin Leonard b3829089a2 Cleaning up methods, adding comments 2023-01-01 20:27:43 -05:00
Torrin Leonard d4301410e0 Re-writing "NOT" rule for non full attribute selections 2022-12-28 18:17:04 -05:00
Torrin Leonard e905d126b6 Fixing Logic.py if statements for THEN rule 2022-12-16 16:15:29 -05:00
Torrin Leonard 2e7d4105b0
Update logic.py 2022-12-13 20:21:12 -08:00
Torrin Leonard 1e144c5409
Fixing major issue with Logic off-sync attribute index. 2022-12-13 20:04:17 -08:00
kimnagui 3a5b7d6212 fix: logic rule then 2022-11-04 17:04:38 +09:00
Matt 2f85d0f065 no longer requires a 'true' argument after "--resume-failed-batch" 2022-09-21 17:05:13 -07:00
Matt bc6a46a40a added argument to allow for resuming failed batch headlessly 2022-09-21 13:25:29 -07:00
Øivin F 5b01447f64
Fixed a bug in material selection
Previously the addon would never choose the last material in a material list, and would not change the material if the first in the list was chosen randomly.
This was caused by a missing "+1" because the original author chose 0 as an error when returned. Without the +1 the script could return 0 randomly when choosing a random element from the list
2022-08-31 18:44:51 +02:00
Torrin Leonard 17b3fcf1a0 Small fix
Resolves Issue #139
2022-08-27 22:01:05 -04:00
Torrin Leonard 0931d99214 Refactoring print statements and exceptions
- Reformatted exceptions to work with new logging system
- Reformatted all print statements
- Moved `activate_debug()` to helpers.py
- Debug mode now shuts down all renders and 3D model exports to perform a 'Dry Run' to check that collections/objects/DNA still exist and work on render time.
2022-08-27 21:48:44 -04:00
Torrin Leonard 7474847ec6 Adding proper logging functionality
- More general pep8 formatting
- Renamed some more variables for pep8
- Modified import comments
- Renamed functions
- Added bpy.path.abspath() to material, logic, and debug save paths
- Beginning to reformat files with new logging/console output system
2022-08-27 19:41:41 -04:00
Torrin Leonard 1c26cea5fc Trying to implement logging for debug 2022-08-25 09:41:22 -04:00
Torrin Leonard de079b94ef Resolving compatibility issues 2022-08-24 13:29:47 -04:00
Torrin Leonard 57ec4b1ac1 Pep8 formatting and renaming key variables 2022-08-24 13:04:20 -04:00
Torrin Leonard 7c389e15df Renaming files 2022-08-24 11:49:09 -04:00
Torrin Leonard 3715b30afa pep8 formatting DNA_Generator.py 2022-08-24 11:10:22 -04:00
Torrin Leonard 3a35a66e75 pep8 formatting Helpers file
- Minor changes to print statements in console
2022-08-24 10:50:51 -04:00
Torrin Leonard e7caa49faf Fixing Print statement spacing 2022-08-24 10:00:53 -04:00
Torrin Leonard 4a939bb9e6 Reformatting dependencies
- Deprecated Rarity.py, moved to Helpers to avoid circular import issues
- Moved get_hierarchy() function from DNA_Generator.py to Helpers to avoid circular import issues
- Reformatted some comments and example code
2022-08-24 09:57:59 -04:00
Torrin Leonard 5e353e42b6 Reformatting print statements 2022-08-24 09:06:40 -04:00
Torrin Leonard cabefc04d1 Reformatting and preparing for debug mode
Created Helpers.py file and combined get_combinations.py, loading_animation.py, Constants.py, and Checks.py.
2022-08-24 08:56:10 -04:00
Torrin Leonard fa1c2c5883 Fixing issues with failed batches
Resolved conflicts with failed batches recovery related to headless variable integration from previous merge.

Fixed issue where animations would get corrupt when resuming failed batch. The last file to be generated will now be deleted if it exists to avoid this issue.
2022-08-11 10:26:16 -04:00
Torrin Leonard 4f42106fa3 Fixing merge issues
Minor bug fixes to exporter and cleaning up code.
2022-08-11 09:48:01 -04:00
Torrin Leonard 74eef79a3f Revert "Merge branch 'Logic_v2_and_minor_changes' into main"
This reverts commit e31d2abf36, reversing
changes made to 138e1b967b.
2022-08-10 22:18:35 -04:00
Torrin Leonard e31d2abf36
Merge branch 'Logic_v2_and_minor_changes' into main 2022-08-10 22:16:45 -04:00
matt-159 ce8a04f5f9 Pulled out code into Intermediate module 2022-07-14 07:02:25 -07:00
matt-159 ffc216798e pulled out duplicated code into getBMNFTData() function 2022-07-14 07:02:05 -07:00
matt-159 5abbb525a4 improved readability 2022-06-30 22:14:22 -07:00
matt-159 50c5d09da7 Added intermediary function wrapper 2022-06-30 21:36:07 -07:00
matt-159 09bcceb209 added logic file argument 2022-06-30 21:03:39 -07:00
Torrin Leonard f0ba77f7a4 Added "NOT" rule to Logic
- Email is now only activated if the user specifies
- Implemented "NOT" rule in Logic.py
- Added documentation for Synced Attribute Material values in Material_Generator.py
2022-06-20 09:32:49 -04:00
Torrin Leonard e449ee3bdf Small change 2022-06-18 21:03:17 -04:00
Torrin Leonard 082edaf4e7 Adding the ability to send emails when Batch is complete
- Reverted Materials over Logic change in DNA_Generator.py
2022-06-18 20:29:02 -04:00
Torrin Leonard f32f2baf3c Adding Auto shutdown functionality 2022-06-18 14:21:25 -04:00
Torrin Leonard 472d942b9f Fixing small issue with Logic 2022-06-11 08:48:09 -04:00
Torrin Leonard 50b869fe09 Removing problematic test code 2022-06-08 23:05:51 -04:00
Torrin Leonard b4ecfe7451 Changing Material Rarity and adding error message 2022-06-07 09:12:27 -04:00
Torrin Leonard 3cb2a69c81 Changes to Materials and Logic
- Added AutoSave before generation functionality to Other panel
- Removed strip_empty_exclude function
- Modified Exporter to work with new Material Randomizer layout
- Added Enable Materials option in logicafyDNAsingle function in preparation for Material Randomizer Logic
- Materials are no longer formatted like Variants, the Material List is now a dictionary where the keys are the names of the Materials and the values are the Rarity percentages. Each Variant in the Materials.json file can have a different list with different rarity values that are selected for only that variant.

Material file format:
```
{
    "Variant Name": {
        "Material List": {
            "Material Name 1": 90,
            "Material Name 2": 5,
            "Material Name 3": 1,
            "Material Name 4": 4
        },
        "Variant Objects": []
    }
}
```
2022-06-06 17:04:25 -04:00
Torrin Leonard 17cbf3a32f Revamping Logic
Lots more info in the comments of the code.

Documentation still needs to be made, also more testing lol

This is the new format for Logic.json files:

```
{
    "Rule-1":{
        "IF": [
            "Variant collection name"
        ],
        "THEN":[
            "Attribute collection name", "Variant collection name"
        ]
    }
}
```

Some basic guidelines, needs to be more thorough and cleaned up for documentation:

Attributes and Variants can be used in the “THEN” list, Variants can only be used in the “IF” list.

If a full attribute is detected in the “THEN” list (either by the attribute collection name or all variant collection names in that attribute) and a variant is not detected in the “IF” list, the attribute detected in the “THEN” list will be set to “EMPTY”.

Variants in the “IF” list may be from the same or separate attributes, however they must never be from the same attribute as variants in the “THEN” list.

I need sleep.

Note to self: The Logic UI List needs to be updated to reflect these changes to Logics core functionality, the current UI List is broken on this branch and wont work.

Also added save_result to Constants.py for basic logging functionality.
2022-06-05 23:46:49 -04:00
Torrin Leonard 6495b12654 Initial commit 2022-06-03 22:47:09 -04:00
Torrin Leonard 7bb741a185
Merge pull request #104 from glassbrickstudio/main
Sorry this took so long lol, been very busy with V4 and our new web service Cozy API. Thanks for the pull request!
2022-05-31 08:25:02 -04:00
Torrin Leonard 51637e9bab
Merge branch 'main' into BMNFTs_V4_Alpha 2022-05-31 08:18:03 -04:00
Torrin Leonard 8f3a95caf1 Fixing weird issue with MP4 slipping through if statements 2022-05-31 08:03:52 -04:00
Torrin Leonard 3a874aea71 Reformatting refactorer to support Tiff and PNG folder animations 2022-05-31 01:28:01 -04:00
Torrin Leonard 643c2f1819 Error messages and minor changes
- Changed labeling in __init__.py to reflect new workflow
- Updated Checks.py to stop throwing weird error and to now catch Script_Ignore collection error
- Added error message if you change collection name after data is created and you generate your nfts
- Added more info in comments and relocated Change Text Object in Scene
- Metadata no longer contains order number and rarity number
2022-05-30 22:45:39 -04:00
Torrin Leonard 62dd24796c Formatting
Formatting Exceptions with colours and adding an aditional exception for the name.
2022-05-25 11:34:24 -04:00
Abrar Faiaz Adnan 33cacab994 shows which attribute has naming problem
added few lines to show which attribute has naming problem, along with the github link to the readme file showing how to fix it
2022-05-24 22:48:38 +06:00
Torrin Leonard 977ad3999f
Update Logic.py 2022-05-12 11:05:49 -04:00