# Why Drop to Ground addon doesn't work?

I have installed the "Drop to ground" addon. I have added the plane and renamed it to "Ground", took a normal cube and put on the plane some distance away from the plane. Then I selected the cube, Shift selected the plane and hit the button to the left - Drop to ground. It's giving an error and nothing is working.

Traceback (most recent call last):
file "C........ addons\object_drop_to_ground.py", line 166, in execute drop_objects (self, context)
file "C........ addons\object_drop_to_ground.py", line 108, in drop_objects hit_location, hit_normal, hit_index = tmp_ground.ray_cast(lowest_world_co, lowest_world_co+down)
valueError : too many values to unpack (expected3)
location : <unknown location>:-1


Can anybody give me solution for that error

• Similarly to closest_point_on_mesh in blender.stackexchange.com/a/63361/15543 (see comment) ray_cast has an extra return value as of 2.76ish that returns the success of the ray cast blender.org/api/blender_python_api_2_78a_release/… Note: this is also outlined in the gist link comments in your Q. – batFINGER Nov 8 '16 at 13:45
• may i know the solution plz sorry i dont know the language section. may i know what i have to do. can u plz download the addon and tell me whats the solution behind it im using 2.77a – atek Nov 8 '16 at 14:03

        hit, hit_location, hit_normal, hit_index = tmp_ground.ray_cast(lowest_world_co, lowest_world_co + down)