Cyberpunk-Blender-add-on icon indicating copy to clipboard operation
Cyberpunk-Blender-add-on copied to clipboard

Add some vertex color quick buttons

Open Simarilius-uk opened this issue 1 year ago β€’ 7 comments

image

Apply color tones for vertices from plugin menu instead of adding a mesh from the game with the desired vertex color attribute to the project

requested by 𝑴𝑨𝑿_𝑺𝑨5 on discord.

Simarilius-uk avatar Feb 23 '24 21:02 Simarilius-uk

I think this is a great idea. Were any particular colours requested/documented in the request?

A couple I know:

Primary Taillight Hex: A90101 Secondary Taillight Hex: E7010 Primary Headlight Hex: 7C0101 Secondary Amber/Marker Light Hex: CB0101

DoctorPresto avatar Feb 23 '24 22:02 DoctorPresto

How about rather than the 0123 buttons we have a drop down that we populate from a text file in resources, then people can add their own to that list if they need something?

Simarilius-uk avatar Feb 24 '24 10:02 Simarilius-uk

A drop down and user defined presets definitely makes sense,, but seems like we should at least include at least a small number of preset colours as well.. I don't think it would be of much value to only include a way to save the colours.

DoctorPresto avatar Feb 24 '24 13:02 DoctorPresto

I meant we have a text file with some presets somewhere thats easy to get to and edit. wouldnt even bother adding the way to save more to the ui, people can just edit the file in resources.

Simarilius-uk avatar Feb 24 '24 13:02 Simarilius-uk

people can just edit the file in resources.

I'm not sure this would be a very user friendly approach. Seems like ideal state would be to just click a single button, have a small modal open up to ask for a name and then whatever colour the vert paint tool is on is saved, rather than needing to copy hex/rgb/hsv/whatever bpy lets us use for vert colour, navigate to the plugin directory, open some file, handwrite an identifier and paste the colour in. The former also leaves open the ability to still go in to the file and manually edit it if desired, just doesn't demand it of you.

DoctorPresto avatar Mar 08 '24 16:03 DoctorPresto

I mean if you can be bothered doing all that, great, but how about for first you just slap the buttons in and load from a file? :D

Simarilius-uk avatar Mar 08 '24 17:03 Simarilius-uk

I think it should be the same amount of work :D

DoctorPresto avatar Mar 08 '24 19:03 DoctorPresto

added in my fork, will be in next major release

DoctorPresto avatar Jun 30 '24 18:06 DoctorPresto