Jump to content
3DCoat Forums

Decimate and Clean into a single button


rubeos
 Share

Recommended Posts

  • Advanced Member

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 by rubeos
Link to comment
Share on other sites

  • Advanced Member

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:

 

j6pkhx.png

But the thing
strange is that if I press 'enter' on the keyboard appears this additional window:

 

262xny1.png

 

Instead if I press 'ok', with mouse, in the first window, the second window not appears.... :unsure:

-----------------------------------------------------------------------------------------------------------------

 

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 by rubeos
Link to comment
Share on other sites

  • Member
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... :(

Link to comment
Share on other sites

  • Advanced Member

 

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...

Link to comment
Share on other sites

  • Advanced Member

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...