PickPont() to get pos.z

Hi all,

I'm stumbling on Pickpoint() to get the pos.z of my mouse cursor position in 3D space.

I'm not really sure how to use these arguments. Hoping for some help :)

https://help.autodesk.com/view/3DSMAX/2018/ENU/?guid=__files_GUID_42CD05...

Thank you.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

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.

remykonings's picture

*

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.

miauu's picture

.

Use scripted mouse tool.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.