ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
I need simple script, but I have no skill in scripting at all. Script should convert all selected objects to ed. Poly, then reset xForm, and finally add edit poly mod. (unique for every object). I will be very grateful for your help!
try(destroyDialog ::ctpRoll)catch()
rollout ctpRoll "convertToEP"(
button btn "Convert" pos:[5,5] width:90
on btn pressed do(
undo off with redraw off
(ifselection.count != 0 dofor o in selection where canConvertto o editable_poly do(
resetXForm o ; converttoPoly o ; addModifier o (Edit_Poly())))))
createDialog ctpRoll 10030 style:#(#style_titlebar, #style_sysmenu, #style_toolwindow)
To works without rollout ei. button pressed you can run code from lestener or make simple macro. Which one do you prefere?
Also if I add resetXform after conversion then you will have two modifiers in modify panel: XForm and EditPoly
macroScript ConvertSelectionToEPoly category:"barigazy" buttonText:"CTEP" tooltip:"Convert Selection To EPoly"(
undo off with redraw off
(
max create mode
ifselection.count != 0 dofor o in selection where canConvertto o editable_poly do(
converttoPoly o ; resetXForm o ; addModifier o (Edit_Poly()))))
Comments
...
bga
Thanks for your attention to
Thanks for your attention to my issue. What should I modify in this script to:
...
To works without rollout ei. button pressed you can run code from lestener or make simple macro. Which one do you prefere?
Also if I add resetXform after conversion then you will have two modifiers in modify panel: XForm and EditPoly
bga
simple macro
simple macro
yes, it is exactly what I want
...
bga
That's great, thank you!
That's great, thank you!