Hai sir,
screenshot = celestia:takescreenshot("jpg") is not working.
Sequence of commands are as below, please not that all variables in my script are working fine, I wanted to automatically store screenshot images.
obs:gotolonglat(myObject,longtbl[i],lattbl[i],disttbl[1],5)
tdb_dt = celestia:utctotdb(2010, 06, 21, 00, x, y)
celestia:settime(tdb_dt)
screenshot = celestia:takescreenshot("jpg")
pause()
Please help me
screenshot command not working
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
-
Topic authorcelestia_user
- Posts: 4
- Joined: 05.06.2010
- With us: 14 years 8 months
Please file the issue here with details of your set up.
https://github.com/CelestiaProject/Celestia/issues
https://github.com/CelestiaProject/Celestia/issues
-
- Site Admin
- Posts: 706
- Joined: 22.09.2018
- With us: 6 years 4 months
From celestia.cfg:
You should set ScriptScreenshotDirectory to a writeable directory.
Code: Select all
#------------------------------------------------------------------------
# The following parameter is used in Lua (.celx) scripting.
#
# ScriptScreenshotDirectory defines the directory where screenshots
# are to be stored. The default value is "", i.e. Celestia's
# installation directory.
#------------------------------------------------------------------------
ScriptScreenshotDirectory ""
You should set ScriptScreenshotDirectory to a writeable directory.
-
Topic authorcelestia_user
- Posts: 4
- Joined: 05.06.2010
- With us: 14 years 8 months