Hi,
i created a HDA that when its placed in the network editor, the node will get a random color code and also update one of my paramter with randomness. However I would like to improve the seed value, atm I seem to get exact similar values when i place them shortly after each other.
Is there a way I could improve the random seed to have more random colors.
In the Type Properties of the HDA under Script I have this script:
set foo = `system(date)`
set seed = `substr($foo, 14, 2)``substr($foo, 17, 2)`
set num = `rand($seed)`
set num1 = `rand($seed+14)`
set num2 = `rand($seed+23)`
opcolor -c $num $num1 $num2 $arg1
opparm $arg1 dcolor2 ($num $num1 $num2) tdisplay ( on ) display ( 1 ) picking ( on )
HDA Node Placement (Custom Color Code)
2228 4 1- Doudini
- Member
- 333 posts
- Joined: Oct. 2012
- Offline
- millag
- Member
- 14 posts
- Joined: Jan. 2014
- Offline
- Doudini
- Member
- 333 posts
- Joined: Oct. 2012
- Offline
- goldfarb
- Staff
- 3455 posts
- Joined: July 2005
- Offline
- awong
- Member
- 818 posts
- Joined: Sept. 2013
- Offline
-
- Quick Links