General Category > ASL Scripts

Requesting a simple controler script

<< < (2/2)

Kubajzz:
Yes! I think I understand it... Thanks a lot!

Now I can see you've done a really good job on the script... and Leslie is a genious!

I would have used something like "if (fract(time)<=$Something) ..." The script would be very long and it would be pain to add "$length", "$StartFrame" and all that stuff...

Thank you once more for this little programming lesson :)

Starbuck:
That is perfect CobraSpectre :) :), You save me hours of work. I can't thankyou enough.

But can I bug you just one more time, can you make it so that you can deside how many frames it stays visible at a time. I need it to stay visible for 2 frames instead of one.

Kubajzz:
Here is my solution;

I hope CobraSpectre doesn't mind I edited his/her(?) script...


--- Code: ---int $length, $offset, $startframe, $duration;
$length = 24;
$offset = 3;
$startframe = 10;
$duration = 2;
$visibility = (frame>=$startframe)&&($duration>((frame-$offset)%$length));
--- End code ---

Cheers ;)

Navigation

[0] Message Index

[*] Previous page

Go to full version