Saku
04-01-2004, 02:29 PM
My script has a spinner that is used for chamfering edges of Editable Poly. How can I make a script to show chamfer size visually in viewport when I increase/decrease value of my chamfer spinner?
If you chamfer edges normally in Max, you can see realtime how big chamfer you are getting. But I can't get it work in my script. I see the end result only when I stop changing value of my chamfer spinner. I want to change chamfer value in my script and same time see how it's going to affect the object.
Part of my script:
on chamfer_spn changed val do (
$.edgeChamfer = chamfer_spn.value --here I get value of chamfer, button down
)
on chamfer_spn buttonup do (
$.EditablePoly.buttonOp #Chamfer --button released, take chamfer value
)
I also attached very simplified script to see how this problematic part of script works now. Make first Editable Poly object -> select edge -> run script ->change spinner value keeping mouse button down and release when ready.
Example script (http://personal.inet.fi/koti/partamies/stuff/edgefillet_simplified.ms)
Thanks,
Saku.
If you chamfer edges normally in Max, you can see realtime how big chamfer you are getting. But I can't get it work in my script. I see the end result only when I stop changing value of my chamfer spinner. I want to change chamfer value in my script and same time see how it's going to affect the object.
Part of my script:
on chamfer_spn changed val do (
$.edgeChamfer = chamfer_spn.value --here I get value of chamfer, button down
)
on chamfer_spn buttonup do (
$.EditablePoly.buttonOp #Chamfer --button released, take chamfer value
)
I also attached very simplified script to see how this problematic part of script works now. Make first Editable Poly object -> select edge -> run script ->change spinner value keeping mouse button down and release when ready.
Example script (http://personal.inet.fi/koti/partamies/stuff/edgefillet_simplified.ms)
Thanks,
Saku.
