Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add save-animgif, save-mpeg, save-image functions #560

Merged
merged 3 commits into from
Jun 7, 2020

Conversation

k-okada
Copy link
Member

@k-okada k-okada commented Apr 23, 2020

(objects (list (make-cube 10 10 10)))
(load "src/jskeus/irteus/irtviewer.l")

;; to start loggin, pleaes make sure to clear the logged image sequence
(send *irtviewer* :logging :clear)
(send *irtviewer* :logging :start)

;; draw objects...

(send *irtviewe r* :save-mpeg :fname "2020-okada-robot-demo.mpeg") ;; save to mpeg file
OR
(send *irtviewe r* :save-animgif :fname "2020-okada-robot-demo.gif") ;; save to animation gif file

;; make sure to stop the logging, other wise the system put all (draw-objects) to iamge sequence, that will cause memory problem
(send *irtviewer* :logging :stop)

@Affonso-Gui
Copy link
Member

Maybe would also be nice to have a with- macro that automatically takes care of stopping the logging for us?

@k-okada
Copy link
Member Author

k-okada commented Jun 3, 2020

thank you. added

+(defmacro with-save-mpeg (fname &rest forms)
+(defmacro with-save-animgif (fname &rest forms)

macros

@k-okada k-okada merged commit 5e59b12 into euslisp:master Jun 7, 2020
@k-okada k-okada deleted the add_gifanim branch June 7, 2020 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants