But as the video shows, I added functionality for objects to be hidden in viewport and render before they are launched. This wasnāt possible before because the visibility couldnāt be keyframed in 2.80!
Also added support for drawing all trajectories rather than just the selected object.
@Nirurin I just downloaded the most recent projectile.py found on GitHub and ran it within Blender with no issues. Could you please explain what isnāt working either here or on GitHub?
I was just coming back to correct this - turns out it does work, but Blender is very particular about how to install it. It wonāt install via the āinstallā function, and it wonāt work if you put it in the addons folder inside the āProjectileā folder, but it does work if you just put the .py straight into the addons folder. First time Iāve had this problem but apparently it happens with some addons.
Seems to be working now, although Iām having some issues. One of my objects is only moving for the first frame and then stopping and hanging for no reason (that I can see). Also the trajectory lines are curving downwards as if itās expecting there to be gravity, even though there is no gravity.
Ended up having to fix the glitch by removing and re-adding the object. Other than the trajectory lines being wrong, everything else seems to be working pretty well
@Nirurin Are you downloading a .zip of the repository, or just the .py file. This is a single file addon, so you will need to install just the .py file. I install within Blender without issues each time I change the addon. The download link for the single file is in the readme. (Right-click, save link as)
The object only moving for one frame sounds like an older issue I had. Are you sure you are using the most recent version of the addon? The same goes for the trajectory lines, I just tested in the official 2.80 release and the lines are drawn correctly, even with scene gravity changes.
Iām not sureā¦ Iām using the .py file that I downloaded from the github master, itās the only file available as there arenāt any āreleasesā on the releases tab in github. It says itās version 1.0?
For me, the trajectory lines are staying curved as if there was gravity, even though I have gravity turned off in the āsceneā settings. Perhaps Iām meant to be turning it off in some other way?
@Nirurin Thanks for clarifying. Iām not sure why the install fails for you. Iāll check but I donāt think there is anything I can do with that.
Thanks for clarifying about the gravity. I failed to check for disabling the scene gravity, so Iāll make that update and fix the script soon. Thanks for reporting!
Sorry @Zachman I meant to say, when I was trying to install it I did install from the .zip download, which created a āProjectilesā folder for the .py file automatically. Which doesnāt then work, because blender wonāt see it if its in a folder.
Works fine installing it manually without the folder though, so itās not a big problem
Great service on the updating though haha, and so far its a really useful looking addon. Makes my life easier on this project anyway!
@Nirurin I have fixed the gravity toggle issue! Sorry it took a while to set aside some time. You can download again from GitHub. Iām glad the addon is helping you!
Changes
Moved the Projectile panel to the Physics tab of the sidebar (āNā panel)
Fixed issue where scene gravity toggling did not update the trajectories.
Hmmā¦ having some issues with this. Similar to the issues I had when I was originally trying to set objects in motion just by manually turning āanimateā on and off.
Basically, Iāve added 3 objects to āprojectile objectsā, and given them all speeds in the Z axis. One of them moves about 1 mm in 1 frame, and then stays still, and the other two donāt move at all.
@Nirurin I have seen this issue before, but I thought I resolved it. Could you share a .blend file that shows the problem, otherwise it will be difficult for me to debug
I just pushed a small update today. Now the initial velocity can be set in spherical coordinates (radius, incline, azimuth) rather than Cartesian coordinates. As always, the latest version is on GitHub.
I have no issues baking the projectiles to keyframes. Select the object. Object > Rigid Body > Bake to keyframes. You can select all the instances and run that operator.
Could you be more specific if that doesnāt solve the problem?