Slice tool for just selected polygons or elemnts of an object

Hi everyone,

Is there a Slice tool for just selected polygons or elemnts of an object?
I found N00BY_SliceTool_v1.2.2 on this site which is very usefull but it performs action on whole object

Actualy this post can be a wish for N00BY_SliceTool :)

Thanks

Comments

Comment viewing options

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

...

Author of this tool use "suspendEditing/resumeEditing" to speed up performance.
In line 270 you can see this code

if selection.count == 1 then
(
	suspendEditing which:#modify
	SliceMesh Axis:SliceAxis UseDistance:bUseDistance
	completeRedraw()
	Accept.enabled = true
	resumeEditing which:#modify
)

You can add something like this to affect selected polygons

if selection.count == 1 then
(
	mody = modPanel.getCurrentObject()
	suspendEditing which:#modify
	SliceMesh Axis:SliceAxis UseDistance:bUseDistance
	completeRedraw()
	Accept.enabled = true
	resumeEditing which:#modify
	modPanel.setCurrentObject mody
	subobjectLevel = 4
	modPanel.setCurrentObject $.modifiers[1]
)

barigazy

Comment viewing options

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