Advanced Member rubeos Posted February 16, 2015 Advanced Member Report Share Posted February 16, 2015 (edited) Possibility of having the commands ''decimate'' and ''clean '' in a single button (decimate+clean) And also possibility to directly launch the command 'decimate' with a single button or shortcuts (as in Sculptris) without going through the window relative options This would be very useful. Direct command ''Decimate+clean'' could be used often and quickly during the sculpture, remove many polygons but without losing the detailed shapes. Edited February 16, 2015 by rubeos Quote Link to comment Share on other sites More sharing options...
Member coverman Posted February 16, 2015 Member Report Share Posted February 16, 2015 This is it. we can assign this command as hotkey. void main(){ InstallToMenu("Geometry","decimate+clean"); cmd("$Decimate");/*Decimate*/ Step(1); cmd("$CleanSurface");/*Clean Surface*/ Step(1); } Quote Link to comment Share on other sites More sharing options...
Advanced Member rubeos Posted February 17, 2015 Author Advanced Member Report Share Posted February 17, 2015 (edited) I also tried this script, it works quite well. Thank you.However I must say two things:1- when I use the script, from the 'scripts' menu or by shortcuts, this window open, and I think this is right: But the thing strange is that if I press 'enter' on the keyboard appears this additional window: Instead if I press 'ok', with mouse, in the first window, the second window not appears.... ----------------------------------------------------------------------------------------------------------------- 2- Is possible bypass the first window pop-up (and of course the second) ? in order to reduce all in a single click.If I need to set the number of polygons to reduce, rarely, I will open the menu. Edited February 17, 2015 by rubeos Quote Link to comment Share on other sites More sharing options...
Member coverman Posted February 17, 2015 Member Report Share Posted February 17, 2015 Answer to 1. Enter key is assigned "SetCurVolumeMode(change surface or voxel)" So, I think it's excuted... Answer to 2. please add this command like this. cmd("$DialogButton#1");/*press ok button*/ void main(){ ShowFloatingMessage("decimate&clean", 3); InstallToMenu("Geometry","decimate+clean"); cmd("$Decimate");/*Decimate*/ cmd("$DialogButton#1"); Step(1); cmd("$CleanSurface");/*Clean Surface*/ cmd("$DialogButton#1"); Step(1); } maybe it will work as you like. but the decimate command need user input on my PC. I don't know why... Quote Link to comment Share on other sites More sharing options...
Contributor Tony Nemo Posted February 17, 2015 Contributor Report Share Posted February 17, 2015 The command wants to know "how much?". I usually input 75% which seems to preserve details just fine. Quote Link to comment Share on other sites More sharing options...
Advanced Member rubeos Posted February 17, 2015 Author Advanced Member Report Share Posted February 17, 2015 Answer to 1.Enter key is assigned "SetCurVolumeMode (change surface or voxel)"So, I think it's excuted ... Sorry, I had not noticed that, problem solved, just delete hotkey. ---------------------------------------------------------------------------------I replaced exaclty this: void main(){ ShowFloatingMessage("decimate&clean", 3); InstallToMenu("Geometry","decimate+clean"); cmd("$Decimate");/*Decimate*/ cmd("$DialogButton#1"); Step(1); cmd("$CleanSurface");/*Clean Surface*/ cmd("$DialogButton#1"); Step(1); } to previous text, right?But the result is the same. Maybe you can not do... Quote Link to comment Share on other sites More sharing options...
Advanced Member rubeos Posted February 17, 2015 Author Advanced Member Report Share Posted February 17, 2015 The command wants to know "how much?". I usually input 75% which seems to preserve details just fine. My idea is to make this command similar to Sculptris. Sculptris not have a way to set the number of polygons to reduced every time. It would just be a way to translate the command in a single click, because I don't need any time to set a different decimation resolution. Quote Link to comment Share on other sites More sharing options...
Member coverman Posted February 18, 2015 Member Report Share Posted February 18, 2015 I read the script manual & updated. https://github.com/coverman03/3dcoat_script/blob/master/surface/yzk_decimateAndClean.script.txt 1 Quote Link to comment Share on other sites More sharing options...
Advanced Member rubeos Posted February 18, 2015 Author Advanced Member Report Share Posted February 18, 2015 I read the script manual & updated. https://github.com/coverman03/3dcoat_script/blob/master/surface/yzk_decimateAndClean.script.txt It works perfectly! thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.