Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*BigBill
Message 1 of 6 (321 Views)

animation....

321 Views, 5 Replies
08-23-2009 03:36 PM
I am trying to do some minor animation with a shaded solid model.

I have tried mslide and a script... this make s very jerky, flashing
animation.
I tried a lisp routine to move the object in small increments, again the
motion is very flashy and slow, as it appears to struggle perhaps with the
shading.

I noticed doing a move command, and moving the same object manually,
dragging the object around the screen with a mouse makes for pretty smooth
motion. Way
better than what I was doing.... Is there a way to do this programmatically?

Thanks!

--
XP Pro
Intel Core2 Duo
p8400 @2.26 GHz
2.99GB Ram

GeForce 9800M GTS video card



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4361 (20090823) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
Mentor
awerning
Posts: 190
Registered: ‎11-14-2008
Message 2 of 6 (321 Views)

Re: animation....

08-24-2009 02:20 PM in reply to: *BigBill
Most likely it is possible with a low-level programming language (ObjectARX\.NET), but probably not with the high-level languages (VBA\LISP\SCRIPT). I have been learning .NET and there seems to be options for doing what you are asking from there...but...that's a whole learning curve in itself...

Good Luck!
*Expert Elite*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 3 of 6 (321 Views)

Re: animation....

08-25-2009 10:18 AM in reply to: *BigBill
You could probably do it using VBA as you can stop the screen from updating until you have completed the move.
This would still be choppy.
You just wouldn't see it redrawing the screen.

Using a JIG or updating one object at a time in .NET might work out better.
---------------------------



(defun botsbuildbots() (botsbuildbots))
Valued Mentor
Shneuph
Posts: 349
Registered: ‎11-26-2007
Message 4 of 6 (268 Views)

Re: animation....

09-22-2011 12:22 PM in reply to: *BigBill

I know this is an old thread.. but Maybe try setting INTELLIGENTUPDATE system variable to 0?

 

 

Controls the graphics refresh rate.

The default value is 20 frames per second. If you encounter problems related to graphics generation or timing, turn off the variable by setting it to 0. INTELLIGENTUPDATE works by suppressing the graphics update until the timer expires. Subsequent updates reset the timer.

The performance improvement significantly affects updates for scripts and AutoLISP graphics. Those using regular AutoCAD commands will not see a noticeable difference in performance.



---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
Contributor
j.aaij
Posts: 12
Registered: ‎01-31-2008
Message 5 of 6 (240 Views)
Contributor
j.aaij
Posts: 12
Registered: ‎01-31-2008
Message 6 of 6 (162 Views)

Re: animation....

09-28-2011 11:44 AM in reply to: Shneuph

Dear Shneuph,

 

When I put INTELLIGENTUPDATE on 0 and I run the programs HofYoke.vlx and HofReci.vlx

from http://forums.augi.com/showthread.php?t=55713&page=5 then they become jerky andflashing!

If INTELLIGENTUPDATE is on 20 then I the animation is more smooth.

 

Jan.


 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.