Notifications
Clear all

[Closed] Extending TurboSmooth

plugin modifier test
	name:"test"
	classID:#(0x6be80e87, 0x71e7eaf6)
	extends:turboSmooth
	replaceUI:true
(
	parameters main rollout:params
	(
		displayIterations type:#integer ui:displayIterationsUI default:1
		
		on displayIterations set val do 
		(
			delegate.iterations = val
		)
	)
	
	rollout params "test"
	(
		spinner displayIterationsUI "Display Iterations: " type:#integer range:[0,10,1] fieldWidth:30
	)
)

I am trying to make a simpler version of the turbosmooth modifier that just lets you update the iterations. When I change the spinner it appears that the values update ok but the mesh in the viewport does not change. How can I get the mesh in the vp to update as well. Thanks,

-bnvm

3 Replies
 JHN

Definitely something fishy going on!

If you add the modifier by script


addModifier $ (test displayIterations:3)

It adds with the right subd, but after that the turbosmooth is not updating to the replaced UI controls… looks like a bug to me.

-Johan

mm… borked – even if you remove the parameters, rollout, etc. Same applies to MeshSmooth. D’oh. I’m sure there’s hacky workarounds, but all the ones I can think of are so ugly you might as well stick with the original UI

Thanks for the confirmation, I suspected it was a bug but wanted to be sure.

-bnvm