Archimedean Spirals script, Chinese YinYang
All  1-6  7-9

Previous
Next
 From:  Max Smirnov (SMIRNOV)
6906.7 In reply to 6906.6 
Hi Brian!

>>Somehow, the latest ArchimedeanSpirals script is getting away with theta=0.
add line:
if (theta===0) { theta=0.0000001 }

>>The onmousemove slider generates the flashing curves, I would guess from repetitive calculations.
Check the new code (attached)
Use diff tool, or any online tool like http://www.quickdiff.com/

P.S. Thank you for a moi.ui.fireUIEvent command :) I didn't know about it :)

EDITED: 7 Mar 2022 by SMIRNOV

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
6906.8 In reply to 6906.7 
Hi Max

Michael provided the code/information on moi.ui.fireUIEvent and onmousemove, for the Clothoid2ptSliders script.
I will try to use your improvements for the Clothoid sliders.

Thank you for the diff tool information.

Checking out your code shows 3 improvement areas.
1. Corrected divide by zero potential error.
2. Greatly reduced slider flickering.
3. Clicking on one of the 4 spiral families switches the spiral to that type.

I am posting a zip of your two files to post #1, replacing the older script.
I need to improve my haphazard version control.

Also, Thank you for your impressive improvements. I had no idea how to do them.

- Brian

EDITED: 13 Sep 2014 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  bemfarmer
6906.9 In reply to 6906.8 
I successfully modified the Clothoid2pt script with the low flicker sliders.
I'll wait a day or two to check it out. It is too late right now.


Also added (for example)

code:
 <td onclick='end_slider.value=180; moi.ui.fireUIEvent("end_slider");'>End Angle:</td> 


to reset the endpoint slider to its midpoint value.

This reset to midpoint value should work on the Spirals, FxGraph3D, and would even work for Blend (?), but I'll leave the latter two alone.

- Brian

EDITED: 14 Sep 2014 by BEMFARMER

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-6  7-9