PDA

View Full Version : Extending TurboSmooth


bnvm
04-20-2009, 09:04 PM
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

JHN
04-21-2009, 11:10 AM
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

ZeBoxx2
04-21-2009, 03:44 PM
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 :|

bnvm
04-21-2009, 03:48 PM
Thanks for the confirmation, I suspected it was a bug but wanted to be sure.

-bnvm

CGTalk Moderation
04-21-2009, 03:48 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.