Announcement

Collapse
No announcement yet.

Scale particles between 50 and 100% ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scale particles between 50 and 100% ?

    Is there a way to do this. If I use a scale operator I can only scale over the 100% range. I've tried using a particle script operator with the following code but this does not work. My lack of knowledge when using scripting !

    Code:
    on ChannelsUsed pCont do
    (
    pCont.useScale = true
    
    )
    
    on Init pCont do ( )
    
    on Proceed pCont do
    (
    count = pCont.NumParticles()
    for i in 1 to count do
    (
    pCont.particleIndex = i
    pCont.particleScale = Random (50 100)
    )
    )
    
    on Release pCont do ( )
    Regards

    Steve

    My Portfolio

  • #2
    replace
    for i in 1 to count do

    with
    for i = 1 to count do

    If the scale gets too big you might need to divide the scale value by 100 (from 0.5 to 1.0).
    Rens Heeren
    Generalist
    WEBSITE - IMDB - LINKEDIN - OSL SHADERS

    Comment

    Working...
    X