Jump to content

Common Sense


Noobini

Recommended Posts

in case ppl don't have access to download the scenes, here's the VEX solution (No I'm not having a go at the contributors)

if( (@primnum >= 0) && (@primnum <= 1) )
    {
    setprimgroup(geoself(), "zero", @primnum, 1, "set");
    }
    
if( (@primnum >= 2) && (@primnum <= 4) )
    {
    setprimgroup(geoself(), "one", @primnum, 1, "set");
    }    
    
if( (@primnum >= 5) && (@primnum <= 8) )
    {
    setprimgroup(geoself(), "two", @primnum, 1, "set");
    }   
    
if( @primnum == 9)
    {
    setprimgroup(geoself(), "three", @primnum, 1, "set");
    }   
    
if( (@primnum >= 10) && (@primnum <= 11) )
    {
    setprimgroup(geoself(), "four", @primnum, 1, "set");
    }   
    
if( (@primnum >= 12) && (@primnum <= 13) )
    {
    setprimgroup(geoself(), "five", @primnum, 1, "set");
    }    
    
if( (@primnum >= 14) && (@primnum <= 15) )
    {
    setprimgroup(geoself(), "six", @primnum, 1, "set");
    }    
    
if( (@primnum >= 16) && (@primnum <= 17) )
    {
    setprimgroup(geoself(), "seven", @primnum, 1, "set");
    }     

if( @primnum == 18)
    {
    setprimgroup(geoself(), "eight", @primnum, 1, "set");
    }  
    
if( @primnum == 19)
    {
    setprimgroup(geoself(), "nine", @primnum, 1, "set");
    }  

 
   

int Success;
vector Color;


if( inprimgroup(0, "zero", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 0, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "one", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 1, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "two", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 2, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "three", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 3, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "four", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 4, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "five", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 5, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }
    
if( inprimgroup(0, "six", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 6, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }    
    
if( inprimgroup(0, "seven", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 7, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }  
    
if( inprimgroup(0, "eight", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 8, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }  
    
if( inprimgroup(0, "nine", @primnum) == 1)
    {
    Color = primattrib(1, "Cd", 9, Success);
    setprimattrib(0, "Cd", @primnum, Color, "set");
    }     

another solution is in this screenprint:

Then there's my common sense solution....of one node, take your pick..

Sol1.jpg

Edited by Noobini
Link to comment
Share on other sites

I did test it at various other settings it's a pretty poor solution to start a thread with and trumpet to other solutions. Not sure of the goal tbh unless you are aiming for ad hoc instead of robust solutions.

Link to comment
Share on other sites

fair enough if you think my solution is poor...I made a contribution.

So if you put up a better solution so everyone, including me, can learn from,...great...

Or do you just wanna have a go at me ?

Yes, I'm a noob.

Intimidated ? NO.

Link to comment
Share on other sites

ummm I have no interest in you, my interest is in robust solutions that scale in Houdini.  For whatever reason you are personalising this feedback.

6 minutes ago, Noobini said:

fair enough if you think my solution is poor...I made a contribution.

So if you put up a better solution so everyone, including me, can learn from,...great...

Or do you just wanna have a go at me ?

Yes, I'm a noob.

Intimidated ? NO.

 

Link to comment
Share on other sites

  • Marc locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...