EWOCprojects presents CreaPrim

I just uploaded version 0.7.0. It features a confirmation popup (like the 2.79 version) which points out how to remove the addon afterwards. Also, this is for Xelbayria, the popup that verifies if the addon save directory has the right permissions has been readded. So it could be CreaPrim is trying to save to a directory it doesn’t have permissions for. One solution for this is running Blender as administrator. You could also change the addon save dir, but I’m not sure how this is done. So first try this new version, it should inform you if permissions are the cause.

When I try to activate the addon it shows this.

Yes seems there was still a bug. New version 0.7.1 online. Strange the bug did not show here…

thank you.

I’ve ran a test on the new version: 0.7.1 and nothing happened? it make no sense.

I even ran the blender as administrator and I even clicked the “create Primitive” and nothing. I also check “INFO” in console and nothing about the addon show up. that’s why i find it making no sense at all.

:thinking:

@Xelbayria: ok, some remarks. First, have you selected a mesh object and are you in edit mode? I just uploaded CreaPrim 0.7.2 that hides the CreaPrim panel when these conditions are not met. Second, the new mesh object shows up in the Add->Mesh menu not the root Add menu. Wouldn’t know what else could be wrong…

No, i was never in edit mode when I selected the mesh. I can confirm that your addon is working as you intended it to.

I tried to go in Edit mode and the addon disappeared. So I returned back to Object Mode, and the addon come back. I know it’s working but :sweat:

=======================================================
I’ll try it with 2.82 to see if it work or not. I’ll let you know how it turned out.

Edit:
the result, well :sob: I don’t have to say it. Just what is it that caused the stupid issue! just a clue or an idea would be great. I want to use this addon.

I’ll tell you my steps.

  1. create a cylinder and set it with 8 sides (not 32)
  2. name it “Cylinder 8S” and chose an icon
  3. click “Create Primitive”

it’s very simple as it is. but whenever I hit “create primitive” it doesn’t show up in viewport “INFO”. but I hit “apply transform” and it does show up in INFO showing that addon is working.

:thinking: which folder that the addon is supposed to be installed in?

EDIT 1:
I’ll send the file so you can take a look to see if it’s my computer or the setting in blender that prevent the addon from doing its job.
Test.blend (780.6 KB)

let me know if you find out anything.

For me it works normal, including POPUP. However when I delete the ADDON from the primitive crash a blender. If I try to disable the addon there is also a crash

:sob: :beer: :fireworks:

alright, i got it working. it must be one of the setting from Blender 2.8x that prevent it from working properly. I don’t know what was it. Anyway, I just reset the setting to factory and it’s working now. I had to restore everything I’ve set up for my work flowing.

cheers, :beers:

Edit:
Okay, I just removed the mesh named “Test” and it crashed the blender. I am using the official 2.82 version (a version of candidate release). I did some test by creating a custom mesh and I try to add the custom mesh from the menu. so far no problem.

@Xelbayria : hurraaayy!!!

Just uploaded version 0.8.0 : the addon doesn’t crash anymore when removing/disabling freshly created primitive addons. Also the good old “menu group” functionality has been resurrected, which means you can select multiple mesh objects and CreaPrim will create a named submenu (in Add->Mesh menu) which lists all included objects (by object name).

@paleajed Will you eventually add UV support to creaprim? Or is that beyond the scope of this add-on? Or at least have it keep the seams.

Also, thank you very much for this.

UV support? It should be technically possible, but maybe a bit over the top for whats essentially a way of adding geometric primitives. What do other people think? In fact it would just be an invisible extension of the normal functionality, so I might indeed add it. But because of lotsa ongoing work on the almost-first-stable version of my open-source video-mixer program, work on Blender addons will have to be postponed…

Is it working for 2.9x? I installed it just fine, but when I tried to create a primitive after selecting an object (with location, rotation and scale applied), it threw this error:

Python: Traceback (most recent call last):
  File "C:\Users\Andy\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\object_creaprim.py", line 154, in invoke
    bpy.ops.creaprim.message('INVOKE_DEFAULT')
  File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy\ops.py", line 130, in __call__
    ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
AttributeError: Calling operator "bpy.ops.creaprim.message" error, could not be found

location: <unknown location>:-1

I don’t know what it means :frowning_face:

CreaPrim checks if you entered a name in the “Name” field. There was an error with throwing a message reminder. It is fixed now. A message will show. You will still have to enter a primitive Name though!

1 Like

Yes, it worked! Thanks a lot! :hugs:

Hello! I’m using Blender 2.93 and I get the following error when trying to use the addon:

Python: Traceback (most recent call last):
  File "/home/macuare/.config/blender/2.93/scripts/addons/object_creaprim.py", line 179, in invoke
    objname = objname.replace(" ", "_")
AttributeError: '_PropertyDeferred' object has no attribute 'replace'

location: <unknown location>:-1

I would love any feedback on this error, thanks.

EDIT:
I just realized that the old addon had a name field to enter the name of the object. Currently there in no field to enter this name. Best regards.

I’m not sure what happened to the OA of this addon, but because I wanted to use this script this morning and found it broken, I’ve taken it upon myself to fix it.

There is one caveat which may or may not have been mentioned by the OA: the object you want to add as a primitive can’t be in the master collection (which is named: “Scene Collection”). It has to be in another, child collection (any child collection) before the script will work.

You can download the updated script from here: https://github.com/rontarrant/blender/tree/master
Install in the usual way.

1 Like

Sorry guys, this one got dropped in the bottomless pit by accident. Or it was my memory erased by aliens. Or just the booze and drugs…
Thanks mublenphocat for fixing the bug! I took your version from your repo and while at it, fixed the “child collection” restriction (which I wasn’t aware of). Theres a new version 0.8.1 to be had at:
http://www.ewocprojects.com/creaprim.html
Hope this makes up for all the sloppiness.
Have fun.

2 Likes

Happy to help. This addon is far too handy to let it fall by the wayside.