ScriptSpot home

Forum topic · General Scripting

PickPont() to get pos.z

By Remy · 2021-03-16

Description
Comments (3)
miauu

.

What is wrong with this:


(
	p = pickPOint snap:#3d
	format "p.z: % \n" p.z
)

Turn on Snap, run the code above and click on any vertex(for example) in your scene.

Reply to miauu
Remy

*

Perhaps i should have been more clear.

I’m looking to place an already selected object with my mousepointer. So i was thinking that this already selected object should follow my mousecursor but also recognize heights. I want the object to move in pos.z too as i move in 3D space on the x/y axis.. So i can place it on top of a xref rooftop for example. Maybe pos.z can be found by using the normal?

Thanks in advance.