If you want to color some of your models.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
If you want to color some of your models.
I made a macro that will random color or set to default grey all objects. Thought this might help make some of those grey models light up. To use, run the macro and push a button, Close it when your done. This will over-ride any colors you have set previous.
Hope this helps....
Hope this helps....
- Attachments
-
- multi_color.PNG (25.81 KiB) Viewed 7286 times
-
- Vision_color.FCMacro
- (3.01 KiB) Downloaded 127 times
Re: If you want to color some of your models.
Are you aware of this command?:
Std_RandomColor
Std_RandomColor
Re: If you want to color some of your models.
I didn't know you could do a selected area. Certainly not as easy to use as the macro and I wanted the user to be able to restore a default.Are you aware of this command?:
Std_RandomColor
I would like FreeCAD v0.20 to get some additional standard properties like:
visibility_tmp
transparency_tmp
shapeColor_tmp
By switching between the tmp and standard properties a showman could highlight specific portions of a model and then switch back to their previous working colors. Or randomized all the colors in tmp and then switch back to standard.
Once I saw this link I just had to try something, this thing is so cool looking, it would look exceptional in color.
https://forum.freecadweb.org/viewtopic. ... er#p419859
Re: If you want to color some of your models.
Nice!
How do you decide the colors? The code seem to be a constant added to r, g and b. Also, why are the these variables called am, bm, cm?
When you use this macro or stc_RandomColor, the colors are sometimes not so desirable. Something I thought about before was being able to define a "color swatch" or some other way to only use colors that work well together (or colors that match your stylesheet or OS theming).
How do you decide the colors? The code seem to be a constant added to r, g and b. Also, why are the these variables called am, bm, cm?
When you use this macro or stc_RandomColor, the colors are sometimes not so desirable. Something I thought about before was being able to define a "color swatch" or some other way to only use colors that work well together (or colors that match your stylesheet or OS theming).
Re: If you want to color some of your models.
If you want to clean up the macro and repost, that's fine, I didn't have alot of time so I did the best I could. Sometimes I post these things and noone pays attention, other times folks read the code.Also, why are the these variables called am, bm, cm?
The am,bm,cm, I was having some trouble so I added a m to abc, it ended up staying like that...
I haven't been able to get the addon manager to work (with me), so when I do I could put this in there.
Re: If you want to color some of your models.
Another way to colour parts is to right click the part in the tree of parts, select set colour, select the part to change colour, choose the colour you want and click ok.
The only drawback I found is that each face of the part has to be selected, which is also good for applying different colours to different face of the same part.
The only drawback I found is that each face of the part has to be selected, which is also good for applying different colours to different face of the same part.
Re: If you want to color some of your models.
Thought I would update the model color macro. Added Shade or Flat line enabling.
- Attachments
-
- Vision_color_plus.FCMacro
- (4.54 KiB) Downloaded 101 times
-
- color_shading_pic.JPG (18.61 KiB) Viewed 6129 times
Re: If you want to color some of your models.
Is this going to be available through the addon manager?
Regards / Viele Grüße
Max
Max
Re: If you want to color some of your models.
Regards / Viele Grüße
Max
Max
Re: If you want to color some of your models.
I will try to get it into add-on, I have another macro that I need to do also.