--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/982b90cb-6381-4ed7-ba59-f39d7fbdaf7bn%40googlegroups.com.
Hi James,
I just sent my latest commits to GIThub containing the
documentation (a sketch of it, I mean) for the Blender add-on.
If things go as expected, the CI system will trigger a Doxygen
rebuild that will turn into an updated documentation at
https://api.projectchrono.org/development/ , where you should find
a new link to Chrono::Blender, one row below the
Chrono::Solidworks link.
Now it is too late in the night for waiting the CI to finish, and I must sleep, tomorrow I will see if all was ok or the Doxygen pipeline had troubles.
regards
Alessandro
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/c4520222-3896-4c37-9df7-96c8657ed7e8n%40googlegroups.com.

Hi James,
Hi Alessandro,
I tried with out with a vehicle simulation with good success. One more bug though and a question:
I will look at it when I find some spare time. Thanks for reporting bugs.3. After clicking File -> New and using the chrono_import option I get this error. Closing and re-opening Blender resolves it. [...]
However, to confirm, it appears that if I click chrono_import (after having already imported a simulation), it will clear the previous data as it loads the new? I do not need to fully close and re-launch the program to ensure it is using the new data?
Yes, all times you perform the chrono_import menu, it clears the
previous data and loads the new data.
Few caveats, anyway: it is not 100% sure that there will be
"leftovers" at each call to chrono_import... to be on the safe
side, you might run the Blender menus under File/Cleanup/... that
remove orphan objects that are not referenced anymore.
Also, here when I want to be completely sure to start from
scratch, I really close and restart Blender.
Also, with my vehicle simulation (15 bodies in chrono_assets, none in chrono_frame_assets), I only get 5 FPS during playback. I expected it to be higher since I eliminated exporting bodies that change each frame (like springs) and used only bodies that need a new position / rotation. Is this expected behavior due to the CPU-bound task of instantiating / uninstantiating objects each frame?
Yes, this is the expected performance caused by Blender instantiating/uninstantiating objects, even if the adoption of non-mutable assets should make things speedier. I think that until it drops to 1 fps, it is still acceptable as Blender is used for hi quality renderings, rather then for interactive viewing. The problem is when it becomes even slower, so also the GUI of Blender starts to act as "freezing" and it becomes not so manageable.
best regards
Alessandro
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/046cade2-5ecf-498f-9b29-1b596b1c1099n%40googlegroups.com.
Hi James,
I got the same problem (crashing when rendering animations) but I
fixed it by turning ON the "lock interface" feature.
Please check the menu Render/Lock Interface: is it turned on or off? By default it is off.
Anyway, In line 1964 of chrono_import.py I added
# this is needed to avoid crashes when
pressing F12 for rendering
bpy.context.scene.render.use_lock_interface = True
and this means that the lock interface feature should be already
turned ON as soon as you register the plugin...
This said, maybe the crash is caused by something else.
Let me know
Alessandro
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/67352218-eec0-4932-82a8-b723c335954dn%40googlegroups.com.
hi James
- effectively, I never noticed the "restricted content" error
when enabling the add-on because I rather load the
chrono_importer.py in the Scripting editor, then I press the >
button ("Run script") all times I start Blender, because I use it
for development so I want to keep it under my hands... And that
error never shows up... I must check this issue asap because most
people will use the add-on with the conventional installation
procedure.
- I must say that the bpy.context.scene.render.use_lock_interface
= True statement (or the equivalent GUI menu Render/lock
interface) should fix the rendering crashes, but I heard that some
people still experience some random crashes when rendering long
animations, in general when using Blender. Should this happen,
please report.
thanks
Alessandro
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/6eae38cd-da8c-46bb-a56e-231ac4ef84d0n%40googlegroups.com.
Hi James,
I released a fix to the chrono_import.py Blender add-on, just 5
minutes ago.
- now you should be able to install and enable it without the "restricted content" error
- once installed there is the button that opens the browser to the documentation of the add-on on Projectchrono.org
- the "bpy.context.scene.render.use_lock_interface = True" trick cannot be invoked at the add-on registration (again, the "restricted content" limitation), so I just moved it in the code that is called all times some simulation is load from disk. This should turn on the lock interface even more than needed, but this workaround is sufficient to avoid troubles.
NOTE: the new release is not in the main branch: currently you can find it in the features/geometry branch, because I was in that context when I pushed the commit. It will be merged with the main branch soon, anyway.
A.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/6eae38cd-da8c-46bb-a56e-231ac4ef84d0n%40googlegroups.com.