Wykres commitów

1410 Commity (e3d86e16d5d78957c83754b129b3ecbe4cb75469)

Autor SHA1 Wiadomość Data
abosafia f9be0d35c7 remove curve doubles without converting to mesh 2024-04-08 11:57:20 +02:00
SpectralVectors 94d7171366
Operation Preset Update
Operation Presets have been updated to create a new operation by default, they will also now follow the naming convention - OP_ObjectName_OperationNumber_PresetName, to keep in line with the naming of default operations.
2024-04-06 12:38:11 -04:00
Release robot 725e335d97 Version number 2024-04-03 12:24:14 +00:00
SpectralVectors 7f461d14b1
Changing `nchunk_points` back to `nchunk.points`
I submitted the last commit after checking my `cam_chunk` file against the `chunk` file in Alain's repo to make sure I hadn't introduced any errors.
When I saw that his code had `nchunk_points` I assumed that my change was a mistake, and I reverted it.

However, upon closer inspection of the code, I believe that it should, in fact, be changed.
There is no reference to `nchunk_points` elsewhere in the code, though there is a similarly named `chunk_points` variable.
`nchunk` is an instance of `camPathChunkBuilder` which has `points`, but not `nchunk_points`.
2024-04-02 12:57:59 -04:00
SpectralVectors 9a6e9612f3
Fixed var nchunk_points
In the function `chunksCoherency` I had mistakenly changed `nchunk_points` to `nchunk.points`, this has been reverted.
2024-04-02 12:47:42 -04:00
SpectralVectors e924c246c0
Delete scripts/addons/cam/chunk.py 2024-04-02 12:45:32 -04:00
SpectralVectors a2a6eb0408
Import and init cleanup
All imports made explicit
All redundant and unused imports removed
All circular import errors resolved

Imports alphabetized and sorted by source, in the following order: 
- Python Standard Library
- pip Packages
- Blender Libraries
- cam Modules (from .)

init split into multiple files:
New:
- cam_operation
- chain
- engine
- machine_settings
- preset_managers

Existing:
- pack
- slice
- ui
- utils

Rewrote get_panels to remove legacy panels and updated to follow Blender's guide: https://docs.blender.org/api/current/bpy.types.RenderEngine.html
2024-04-02 11:12:24 -04:00
SpectralVectors 00910eaa15
Import and init cleanup
All imports made explicit
All redundant and unused imports removed
All circular import errors resolved

Imports alphabetized and sorted by source, in the following order: 
- Python Standard Library
- pip Packages
- Blender Libraries
- cam Modules (from .)

init split into multiple files:
New:
- cam_operation
- chain
- engine
- machine_settings
- preset_managers

Existing:
- pack
- slice
- ui
- utils

Rewrote get_panels to remove legacy panels and updated to follow Blender's guide: https://docs.blender.org/api/current/bpy.types.RenderEngine.html
2024-04-02 11:11:09 -04:00
SpectralVectors 7325fb1164
Import and init cleanup
All imports made explicit
All redundant and unused imports removed
All circular import errors resolved

Imports alphabetized and sorted by source, in the following order: 
- Python Standard Library
- pip Packages
- Blender Libraries
- cam Modules (from .)

init split into multiple files:
New:
- cam_operation
- chain
- engine
- machine_settings
- preset_managers

Existing:
- pack
- slice
- ui
- utils

Rewrote get_panels to remove legacy panels and updated to follow Blender's guide: https://docs.blender.org/api/current/bpy.types.RenderEngine.html
2024-04-02 11:07:14 -04:00
Release robot b3af65ef00 Version number 2024-03-31 14:54:08 +00:00
SpectralVectors a6d8c34b80
Update utils.py 2024-03-30 20:15:37 -04:00
SpectralVectors 00eb5b4b4b
Update utils.py
Removed typing import
2024-03-30 20:14:12 -04:00
SpectralVectors 5afb9d197e
Preset and Preview Fix
Cutter and Machine Presets worked without issue.
Operation presets would load, but could not be saved - `AttributeError`
This was caused by 3 errors in `AddPresetCamOperation` in `init`:
- `o.movement.movement.spindle_rotation` changed to `o.movement.spindle_rotation`
- `o.optimize` and `o.optimize_threshold` changed to `o.optimisation.optimize`  and `o.optimisation.optimize_threshold`

Discovered this while trying to add a small usability patch that would add an operation if there wasn't already on in the scene, so that loading an operation preset wouldn't cause an error message.
Patch was done by adding a `setup_operation_preset` function in `utils` that would `try: except` to try to adjust an existing operation, but add one if one isn't present.
I also patched the existing operation presets, though they aren't copied to disk by default, so I added a `BoolProperty` to the `AddonPreferences` and copy logic to the `check_operations_on_load` handler so that they will only be copied once. The copy operation does not affect any additional presets the user may have, only the default set that come with the addon.

Also fixed the 'Material Preview' viewport mode. 
Previously the object would disappear when switching to that mode.
Render Engines have the option to 'borrow' Material Preview mode from EEVEE via a boolean `bl_use_eevee_viewport = True`
I set that, and added the panels to the Material tab when in Cam.
2024-03-30 18:22:35 -04:00
Release robot dd3fae8eca Version number 2024-03-30 14:30:03 +00:00
SpectralVectors 7601cedbf9
numba removed, machine and operation bugfixes
Commented out `numba` import from the `__init__` for now, until the issues with crashing can be resolved.
Moved `_IS_LOADING_DEFAULTS` out of the `updateMachine` function, declared the default value = False, and grabbed it via `utils.IS_LOADING_DEFAULTS`.
(Note: It was already declared a `global` variable within the function, and I thought that would have been enough to avoid this error, but it works now)

Lastly, altered the cleanup in the `_calc_path` function in `ops.py` - previously it was checking for and deleting objects without issues. 
In Blender 4.1 deleting an object would still leave behind mesh data that retained the object name, causing the cleanup function to not recognize and update old operations.
Simply deleting the mesh data solves the issue, as it will also delete the object with it, even though the reverse is no longer true.
2024-03-29 12:38:27 -04:00
Release robot 835e26f9aa Version number 2024-03-28 00:25:35 +00:00
Release robot ecd08e39c1 Version number 2024-03-27 22:49:42 +00:00
SpectralVectors c5fbf903c7
Update __init__.py 2024-03-27 18:48:48 -04:00
Release robot 46b91b72cf Version number 2024-03-27 17:34:48 +00:00
Release robot 9d2dcbf7ea Version number 2024-03-27 17:18:52 +00:00
SpectralVectors 07be079d23
Update __init__.py, fix 1.0.8 install error
There was a space in bl_info and that caused some bugs.
2024-03-27 13:18:14 -04:00
Release robot 2a6961ebbf Version number 2024-03-26 12:56:35 +00:00
Alain Pelletier 9c68cc2345
Merge branch 'master' into import-fix 2024-03-25 16:04:19 -03:00
SpectralVectors 94ca6d1a04
Autoformat fix
Caught a handful more lines that needed to be reverted to clean up the diff.
2024-03-23 11:40:22 -04:00
SpectralVectors f3abf4e303
Import fix update - bpy.utils, autoformat fix
While rearranging and cleaning up the utils imports in the initial 'Import fix' commit I deleted `utils.` from `bpy.utils.script_paths()` in the ops.py file.
This has been fixed, and I took the opportunity to reverse the autoformat issue (changed line length from 100 to 89 between commits), and restore all the code to its previous state.
I made one exception:
- comments that came at the end of the line that were moved to the line above

All functional code has been restored to its previous format.
2024-03-23 11:18:14 -04:00
SpectralVectors 2e3acdd750
Import fix update - bpy.utils, autoformat fix
While rearranging and cleaning up the utils imports in the initial 'Import fix' commit I deleted `utils.` from `bpy.utils.script_paths()` in the ops.py file.
This has been fixed, and I took the opportunity to reverse the autoformat issue (changed line length from 100 to 89 between commits), and restore all the code to its previous state.
I made one exception:
- comments that came at the end of the line that were moved to the line above

All functional code has been restored to its previous format.
2024-03-23 11:16:55 -04:00
SpectralVectors 3a546c2758
Import fix update - bpy.utils, autoformat fix
While rearranging and cleaning up the utils imports in the initial 'Import fix' commit I deleted `utils.` from `bpy.utils.script_paths()` in the ops.py file.
This has been fixed, and I took the opportunity to reverse the autoformat issue (changed line length from 100 to 89 between commits), and restore all the code to its previous state.
I made one exception:
- comments that came at the end of the line that were moved to the line above

All functional code has been restored to its previous format.
2024-03-23 11:14:38 -04:00
SpectralVectors 4b5dddc524
Update version.py 2024-03-22 20:57:50 -04:00
SpectralVectors 2a22fb19b1
Update __init__.py 2024-03-22 20:57:33 -04:00
SpectralVectors e8a9333f52
Update version
version was previously only updated in bl_info, it has now been updated to match in the version.py file as well, which should allow it to display in the main UI.
2024-03-22 20:40:31 -04:00
SpectralVectors cd4856c3d0
Import Fix, funcs moved, refs updated, ocl rename
Changed all imports from absolute to relative: 
- instead of importing the module 'cam' now imports come from '.' the relative parent folder
- importing the module into itself resulted in a circular import error, relative imports avoid this

Moved Functions, refs updated:
- some functions  (and 2 variables) only existed on the base level of the module, in the init file, and could not otherwise be accessed, they were moved into the utils file with other similar functions
- these were primarily called as update functions for Properties scattered across the addon, these have all been updated to reflect the new location and import convention

opencamlib_version rename:
- in 2 files there was a local variable named 'opencamlib_version' that was defined by a function called 'opencamlib_version' that returned the opencamlib_version
- this seemed to confuse Blender into thinking that it was being called before it was defined, and simply changing the variable name to 'ocl_version' while keeping the function name as 'opencamlib_version' fixed the issue
2024-03-22 17:54:04 -04:00
SpectralVectors c0febee968
Import Fix, funcs moved, refs updated, ocl rename
Changed all imports from absolute to relative: 
- instead of importing the module 'cam' now imports come from '.' the relative parent folder
- importing the module into itself resulted in a circular import error, relative imports avoid this

Moved Functions, refs updated:
- some functions  (and 2 variables) only existed on the base level of the module, in the init file, and could not otherwise be accessed, they were moved into the utils file with other similar functions
- these were primarily called as update functions for Properties scattered across the addon, these have all been updated to reflect the new location and import convention

opencamlib_version rename:
- in 2 files there was a local variable named 'opencamlib_version' that was defined by a function called 'opencamlib_version' that returned the opencamlib_version
- this seemed to confuse Blender into thinking that it was being called before it was defined, and simply changing the variable name to 'ocl_version' while keeping the function name as 'opencamlib_version' fixed the issue
2024-03-22 17:52:18 -04:00
Release robot d9524cf655 Version number 2024-03-22 12:28:37 +00:00
Release robot fcc9239594 Version number 2024-03-22 12:28:19 +00:00
SpectralVectors 2c1e4e962f
Property format, version update
Changed the formatting of Properties (e.g. bpy.props.StringProperty) throughout:

Before:
```
use_position_definitions: bpy.props.BoolProperty(name="Use position definitions",
                                                     description="Define own positions for op start, "
                                                                 "toolchange, ending position",
                                                     default=False)
```

After:
```
use_position_definitions: BoolProperty(
        name="Use position definitions",
        description="Define own positions for op start, "
        "toolchange, ending position",
        default=False,
)
```

Added trailing commas to retain formatting if another autoformatter (e.g.: black) is implemented.
Removed bpy.props. prefix from Properties that still had it, and added explicit imports when required in ui_panels module.
2024-03-21 14:53:43 -04:00
SpectralVectors 9e9cd3438f
Autopep8 format, author & version update
Ran Autopep8 on all files in repo, they are otherwise untouched with one exception:
In the __init__ file, I had to manually rearrange the import statements to avoid triggering a circular import error.
This will be addressed in a future commit.

Updated authors in bl_info to: 'Vilem Novak & Contributors' - this can be changed as required
Updated version to: 1.0.5
2024-03-21 08:36:34 -04:00
SpectralVectors 343d0642e1
Autopep8 format, author & version update
Ran Autopep8 on all files in repo, they are otherwise untouched with one exception:
In the __init__ file, I had to manually rearrange the import statements to avoid triggering a circular import error.
This will be addressed in a future commit.

Updated authors in bl_info to: 'Vilem Novak & Contributors' - this can be changed as required
Updated version to: 1.0.5
2024-03-21 08:33:03 -04:00
SpectralVectors 3a6b217abc
Autopep8 format, author & version update
Ran Autopep8 on all files in repo, they are otherwise untouched with one exception:
In the __init__ file, I had to manually rearrange the import statements to avoid triggering a circular import error.
This will be addressed in a future commit.

Updated authors in bl_info to: 'Vilem Novak & Contributors' - this can be changed as required
Updated version to: 1.0.5
2024-03-21 08:29:30 -04:00
Release robot 11259ca035 Version number 2024-03-19 17:58:12 +00:00
Release robot d0920d7c3d Version number 2024-03-07 18:53:11 +00:00
abosafia 4e5aa00159 fix collissoin 2024-03-07 20:44:39 +02:00
abosafia 5dd3183cf8 meander back to work 2024-03-07 19:25:37 +02:00
Joe Marshall ad7b0267ce fixes to opencamlib resampling for numpy 2024-02-22 11:29:23 +00:00
Release robot 8c858a786b Version number 2024-02-06 14:58:31 +00:00
Joe Marshall e1303c5c59
Merge branch 'pppalain:master' into medial_fixes 2024-02-06 11:20:49 +00:00
Joe Marshall 5619be07dd fixed silhouette getting 2024-02-06 11:19:45 +00:00
Joe Marshall cdefe77546 medial fixes and tests 2024-02-05 21:12:20 +00:00
Joe Marshall e8a9dc815f test data for 4 axis 2024-02-05 12:31:02 +00:00
Joe Marshall a5551e8a44 fixes for 4 axis 2024-02-05 12:30:43 +00:00
Release robot 8dd6de6cf5 Version number 2024-02-02 20:21:13 +00:00