Random selection / coloring
-
Hello, everyone.
I want to random-color a group of disconnected faces... Perhaps with four or five different colors/materials... Is there a way to do this? There are soooo many scripts... Perhaps there's already one that can do this.
If there's not one to do random coloring, is there one that can do random selection, so I can do the coloring myself?
Thank you in advance. I promise to learn Ruby so I can help, too.
-
http://www.sketchucation.com/forums/scf/viewtopic.php?p=44671#p44671
random select then paint...
-
I began writing this script for you and it was working, but I accidentally made a never-endding loop in the code, and I got stuck and had to force kill SU, and there fore lost all the code - oops! So if no one beats me to it, I'll try to have one posted today.
Chris
-
@chris fullmer said:
I began writing this script for you and it was working, but I accidentally made a never-endding loop in the code, and I got stuck and had to force kill SU, and there fore lost all the code - oops! So if no one beats me to it, I'll try to have one posted today.
Chris
You write the scripts into the console?
-
I do, because it is all trial by error so I need immediate feedback if my syntax is working or not. Hopefully in time I'll get better with the syntax and not need to execute my script 10 times per line of code
Chris
-
OK, I have script working. Give me a little while to get it setup for the menu system and cleanly organized.
Chris
-
@chris fullmer said:
I do, because it is all trial by error so I need immediate feedback if my syntax is working or not. Hopefully in time I'll get better with the syntax and not need to execute my script 10 times per line of code
Chris
I think a debugger would help greatly here. I've been looking for a solution there the last couple of days. From what I understand, something called Sketchup Bridge is up for the job. But I'm not sure how it's used though.
-
While I've gotten rather fond of typeing "UI.messagebox "1" " or 2 or 3 etc on every other line of code to find the precise point at which my code is breaking, I suppose a debugger would come in very handy
Chris
PS the script is done but it needs a few safety checks built in to it on the RGB input menus. So a little bit longer and I'll post a new topic for it.
-
Wow, thank you, Chris, This script will save everyone a lot of work when creating cities via Greeble and random push/pull...
Advertisement