ScriptSpot home

Forum topic · Scripts Wanted

snap to helper point

By juzernejm · 2019-12-14

Description

I am looking for, a script to snap, to point helpers.
3ds max 2016 x64

Comments (10)
juzernejm

not working or im stupid noob xD

here is link to video which shows not working scripts

https://vimeo.com/403331733

and here in link to video which shows that's how I imagine it but working on helper point

https://vimeo.com/403335138

describing it like this
I have some object, vray proxy model or whatever.
I create a pont helper in the places designated by me on the model, then select the whole and create a group, and thanks to the snap helper point script I send created groups to other groups that also have a helepr point.
I assumed it would work.

i dont know hot to say/describe in english :/

juzernejm

I guess I am doing something wrong, in the new year I will show in an example film how I use it and you will tell me why it does not work ........ Where I make a mistake.
Yes, I know you did not expect me to have problems with something so simple. I do not disturb you during Christmas.

juzernejm

Ok, but how can i this use,

Ok, but how can use in 3ds max?;
Is it in the form of some window?
How to use it?

Maybe I didn't explain clearly (I'm sleepy), I mean snap helper point to helper point.
I don't know if it's something but somehow I think poorly today.

I have a stupid question.
Could you show me how to use it?

Reply to juzernejm
Panteleev Sergey

.

that's unexpected :) you ask for a script and even don't know how to use one
ok

you can either run it as is or make a macro out of it
then you can bind it to a hotkey for convenience

usage:
1. select object/s
2. execute script or macro using hotkey
3. pick the helper node where selection will move

juzernejm

No, snap to helper point only.
I will assign the appropriate point helper to the objects.

Reply to juzernejm
miauu

.

OK. But what have to be snapped to those helper points? Selected objects? Selected verts? Something else?

Reply to juzernejm
Panteleev Sergey

.


picked_helper = pickObject filter:(fn isHelper obj = isKindOf obj helper)
if picked_helper != undefined do
(
	selection.pos = picked_helper.pos
)

or


picked_helper = pickObject filter:(fn isHelper obj = isKindOf obj helper)
if picked_helper != undefined do
(
	move selection (picked_helper.pos - [selection.center.x, selection.center.y, selection.min.z])
)
juzernejm

Maybe I'll say yes.I have

I have several hundred different objects that fit into my lego style, but not literally.
I want to build something out of them, and I came up with the idea of giving some point helpers to each object to make the fun easier.
Maybe I'll make some film for yt.
Sorry for any errors, I use google translate.

Reply to juzernejm
miauu

.

You want a script that will create point helpers and will put each point helper at the position of each of the selected objects?

miauu

.

What will be snapped to those help pointers?