Need help.
i tried to set up SCALE Y to random numbers from 0.1 to 0.9 - but it doesn`t work.
why.jpg
Need help.
i tried to set up SCALE Y to random numbers from 0.1 to 0.9 - but it doesn`t work.
why.jpg
Line 4. You can't compare a loopindex outside of a loop. You *must* include an "on loop" condition. There may be other issues as well, but that's the one that jumped out at me.
Ok. i rephrase my question ))
qw.jpg
RRandom() only takes integers (whole numbers), so you need to input values that are ten times as high as the values you need, and then devide by ten afterwards.
Use RRandom(1,9) / 10.0 instead.
Keep in mind that RRandom(1,9) / 10 would not work as you need to convert the value into a float for Fusion to treat it as a decimal number, and you simply convert it by adding a decimal value to the calculation.
Thank you Popcorn !
P.S. - I tried to *1.0 and +0.0
Why it doesn`t work ?
Also you run your loop 12 times but are comparing when loopindex = 12. The loop will never reach an index of 12 as it runs indexes 0 through 11 ( 12 total).![]()
Everything is OK with this. Try it for yourself
try_this.mfa
Ah, I realize what you are doing now. I have never tried doing a LoopIndex comparison outside of a fastloop. If you add (On Loop "q") to the second event, you would need to change your comparison to 11.
It seems that a LoopIndex outside of a loop is 1 based. But it is bad coding practice to check this outside of a loop, since it will be checked every frame. If it is inside the loop, it is only checked once for each loop that is run.
This is another reason I really hope EVERY F***ING THING in F3 is 0 based by default.
You would do exactly the same thing. but inside the loop. Whatever you need to trigger on the loop's end, you would have a LoopIndex comparison (as you already do) but do it in an "On Loop" condition:
+Some Condition
-- Start Loop "q" 12 times
+ On Loop "q"
+ LoopIndex("q") = 11
-- Do Action