diff --git a/leenkx/blender/lnx/material/cycles_nodes/nodes_input.py b/leenkx/blender/lnx/material/cycles_nodes/nodes_input.py index 14c5700..506be34 100644 --- a/leenkx/blender/lnx/material/cycles_nodes/nodes_input.py +++ b/leenkx/blender/lnx/material/cycles_nodes/nodes_input.py @@ -254,9 +254,10 @@ def parse_particleinfo(node: bpy.types.ShaderNodeParticleInfo, out_socket: bpy.t c.particle_info['index'] = True return 'p_index' if particles_on else '0.0' - # TODO: Random + # Random if out_socket == node.outputs[1]: - return '0.0' + c.particle_info['random'] = True + return 'p_random' if particles_on else '0.0' # Age elif out_socket == node.outputs[2]: @@ -276,7 +277,7 @@ def parse_particleinfo(node: bpy.types.ShaderNodeParticleInfo, out_socket: bpy.t # Size elif out_socket == node.outputs[5]: c.particle_info['size'] = True - return '1.0' + return 'p_size' if particles_on else '1.0' # Velocity elif out_socket == node.outputs[6]: