About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
.
yuo need to ensure that pickPoint returns Point3 before accessing its x y z
pls can you fix this
i made this ~ x y z
it is x axis code
and i make 10 number boxs
and tested per box
first box is good
but next box is not working ~
z is good
but a axiz is not work ~~
what problem ~~
pls can you teach ~
savesnap=snapMode.active
snapMode.active=true
while NOT keyboard.escPressed do
(
in coordsys local pta = pickpoint snap:#3d
if classOf pta == point3 do
(
sx = pta[1]
sy = pta[2]
sz = pta[3]
npx = [sx+300,sy,sz]
ptd = ( npx - pta )
nptd = normalize ptd
na = nptd[1]
nb = nptd[2]
nc = nptd[3]
in coordsys local $.EditablePoly.slice [na,nb,nc] pta flaggedFacesOnly:off
)
)
snapMode.active=false
macros.run "Selection" "SmartSelect"
.
I don't understand what this code is supposed to do, sorry.
really thank you~~~ good good good work ~
good good good
you are genius~~
.
use scripted mouse tool for that purpose
i this code but error~
sorry i don;t know well about script mouse tool
so i used keyboard escaped
but that is error~~]
what problem ~~
savesnap=snapMode.active
snapMode.active=true
while NOT keyboard.escPressed do
(
in coordsys local pta = pickpoint snap:#3d
sx = pta[1]
sy = pta[2]
sz = pta[3]
npx = [sx,sy,sz+300]
ptd = ( npx - pta )
nptd = normalize ptd
na = nptd[1]
nb = nptd[2]
nc = nptd[3]
-- in coordsys local Point pos: pta
in coordsys local $.EditablePoly.slice [na,nb,nc] pta flaggedFacesOnly:on
)