Notifications
Clear all

[Closed] Use Soft Selection with Edit_Poly modifier?

EDIT: Nevermind, I figured it out.

For anyone who wants to use soft selection on Edit_Poly modifier later, here are the basic steps needed to do it:

  1. Get the selected verts
  2. With Soft selection enabled and ‘show end result’ off, get the verts affected by soft selection via the trimesh. (meshop.getVDataValue)
  3. figure out where you want ALL the verts (selected and soft) to go (assuming we weren’t using soft selection).
  4. Move the selected verts to their expected poitions, and do the same to the ‘soft’ verts but multiply their offset from their original position by their weight.

That’s it. All soft selection really does in this instance is assign weight values so you know which verts to move and by how much, it doesn’t directly move any verts by itself. This method should also work fine on things other then Edit_Poly modifiers.

1 Reply

does it work for you?

delete objects
gc()

with redraw off
(
	
	t = Teapot isSelected:true
	rotate t (EulerAngles 33 44 66)
	scale t [1.5,1.5,1.5]

	
	ep = EditPolyMod()
	addModifier t ep

	max modify mode
	subObjectLevel = 1
	ep.Select #Vertex #{36..50}
	ep.useSoftSel = true
	ep.falloff = 25

	ep.SetOperation #Transform
	ep.MoveSelection  [0,0,10] parent:t.transform axis:t.transform
	ep.Commit ()
)