9/27/2023 0 Comments Autocad animation![]() Group #1 (default g1)- is the object that rotates, the crank Note that before executing animationrotation3 you should define two groups as follows: It doesn't use render but just does a screen capture. I quickly put together the following script that creates a jpg image of each frame. For example, the following script (.scr) will rotate group mygroup about 0,0,0 with a step size of 5° with a delay factor of 50 (milliseconds) for 40 steps. ![]() If you would like to run the program without entering parameter values you can use a script that calls the program. (command "rotate" "g" gname "" ctr AngStep nSteps) (setq nSteps (getint "\nEnter number of steps (20): ")) ![]() (setq gname (getstring "\nEnter group name (g1): ")) (setq d (getint "\nEnter delay factor (100): ")) (setq AngStep (getreal "\nEnter angle step size (10): ")) (setq ctr (getpoint "\nIndicate center of rotation.")) Animates a group about a specified point. ![]() The program does not do any error checking so use it with care. The program prompts the user for the center of rotation, group name, rotation angle step size, and number of steps in the animation. The speed is controlled by specifying a speed factor that is fed to the delay command. Animaterotation is a simple vlisp program that will produce an animation of a rotating group of objects about a specified point. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |