A new version of Cineversity has been launched. This legacy site and its tutorials will remain accessible for a limited transition period

Visit the New Cineversity
   
 
Select Objects By Display Color
Posted: 06 December 2022 04:11 PM   [ Ignore ]  
Total Posts:  25
Joined  2012-01-06

Hi, I have a CAD file with many objects that have no materials, the objects just have different display colors, is there a way to select the objects by display color?

Thanks in Advance.

File Attachments
C4D_R26_SelectObjectsByDisplayColor.zip  (File Size: 58KB - Downloads: 56)
Profile
 
 
Posted: 06 December 2022 07:45 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Hi modado,

I would check how far any sorting could be done with Layers from the creator of the file. Or if a naming convention might help. Something like that/

Color selection for Objects: Not to my knowledge. But I will suggest that. Sorting colors into Layers, with a certain tolerance, so one doesn’t end up with uncounted Layers.

This describes a little bit of the problem, how exact the colors from the CAD file are.

However, since the color is a value, one can compare it. Either from the Object (attribute manager) or with Display> Constant Shading!


I tried different ideas this morning, and the simplest one would be to see R, G, and B as a vector, and equal color would have zero distance to it.
So a cube 1x1x1 would have a max distance of 1.732. Which I used with a slightly different value as the parameter “Differ”.

So how does this work? Click on the XPresso Tag. You get to parameters (Differ and Color)

To see all objects, move the slider “Differ” to the right.
Then pick a color, preferably type the values in.
Now use the Differ parameter to reduce the outcome.

You will be left with a small group. This can be selected in the editor view. With that, all selected objects can be dragged from the Object Manager onto a prepared layer.

Then you pick the next color.

File
https://www.dropbox.com/s/3tqojwu36qlseys/CV3_2023_drs_22_XPcc_01.c4d.zip?dl=0


Yes, it would be nice if automated. I get that.

All the best

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 06 December 2022 09:39 PM   [ Ignore ]   [ # 2 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

P.S.: here is a short screen capture (60sec)
https://www.dropbox.com/s/ht4vstzg9wljybu/Color-Object-Selection.mp4?dl=0

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile
 
 
Posted: 07 December 2022 11:59 AM   [ Ignore ]   [ # 3 ]  
Total Posts:  25
Joined  2012-01-06

Hi Dr. Sassi,
thanks for that, but unfortunately it doesn’t work with my CAD file :(

Profile
 
 
Posted: 07 December 2022 12:11 PM   [ Ignore ]   [ # 4 ]  
Total Posts:  25
Joined  2012-01-06

Ahh, now I’ve found the “LinkList” Node, it works now, thanks!

Profile
 
 
Posted: 07 December 2022 03:56 PM   [ Ignore ]   [ # 5 ]  
Administrator
Avatar
Total Posts:  12043
Joined  2011-03-04

Thanks for the post, and update, modado.

There are other ways to iterate through “things”, but it is a question of the scene and how one likes to work.

I have filed a feature request, and I hope it will be possible to automate this task in the future.

My best wishes

 Signature 

Dr. Sassi V. Sassmannshausen Ph.D.
Cinema 4D Mentor since 2004
Maxon Master Trainer, VES, DCS

Photography For C4D Artists: 200 Free Tutorials.
https://www.youtube.com/user/DrSassiLA/playlists

NEW:

NEW: Cineversity [CV4]

Profile