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.
(-- "the index of the segment that you want to delete"
segIdxTodel = #(3)
subSplineIdx = 1
splineObj = $Line001
select splineObj
max modify mode
subobjectlevel = 2
setSegSelection splineObj subSplineIdx segIdxTodel
updateShape splineObj
max delete
)
As you can see if the code is executed without brackets(everytnig is in global scope) the segment will be deleted. If the splineOps.delete is inside brackets(local scope) it not works.
Yes, I know that without the brackets everything works fine
but I need to create a function
In any case, your method works really well
I just replaced the "splineOps.delete" in "max delete" and got what I need
Thank you so much you helped me a lot
Happy new year!
cheers!!
Comments
.
Tools and Scripts for Autodesk 3dsMax
Thank you miauu you just
Thank you miauu
you just saved me!!!
if you can tell me why my method does not work
(
setSegSelection $ 1 #(3)
subobjectLevel = 2
splineOps.delete $
subobjectLevel = 0
updateShape $
)
.
I don't know.
But this works:
As you can see if the code is executed without brackets(everytnig is in global scope) the segment will be deleted. If the splineOps.delete is inside brackets(local scope) it not works.
Tools and Scripts for Autodesk 3dsMax
Yes, I know that without the
Yes, I know that without the brackets everything works fine
but I need to create a function
In any case, your method works really well
I just replaced the "splineOps.delete" in "max delete" and got what I need
Thank you so much you helped me a lot
Happy new year!
cheers!!