Examples of "autopilot' in .xaf files.

20 views
Skip to first unread message

J S

unread,
May 23, 2025, 2:21:42 PMMay 23
to xaos-users
Hi  Zoltan,

Thank you very much for your prior help!

I would be glad to try at the end of rendering the xaos example file 'juliaanim.xaf', 'autopilot' will be started (similar to 'Autopilot' in GUI: "walking" around picture, zooming in  and zooming out, etc...):

 # xaos -render juliaanim_with_copilot.xaf -renderframerate 30 -basename frame_

What kind of changes I need make in text file juliaanim.xaf to create file juliaanim_with_copilot.xaf?

Thanks a lot.

The best regards,

-Joseph  

Kovács Zoltán

unread,
May 24, 2025, 1:55:09 AMMay 24
to xaos-...@googlegroups.com
I guess you mean that after zooming out you want to switch autopilot on. Add this to the end of file:

(autopilot #t)
 
Best, Zoltan

Kovács Zoltán

unread,
May 24, 2025, 3:32:03 AMMay 24
to xaos-...@googlegroups.com

(autopilot #t)

And maybe an (usleep ...) command is also required after this if you want to render the animation and ensure that XaoS does not exit immediately. But I did not try this.

Best, Zoltan
 

J S

unread,
May 24, 2025, 2:43:12 PMMay 24
to xaos-users

Hi  Zoltan,

Thank for the suggestion, and it worked for 'xaos -play'.

I created the text file ap.xaf:

 

(initstate)

(filter 'palette #t)

(palette 3 974867599 3)

(formula 'mandel)

(view -0.5632 -0.00595 2.428 2.428)

(textposition 'center 'middle)

(text "Before '(autopilot #t)'... 1")

(wait)

(autopilot #t)

(text "After '(autopilot #t)'... 1")

(wait)

(usleep 5000000)

(usleep 5000000)

 

After running the follow command I saw the normal 'autopilot' views:

  xaos.exe -play .\ap.xaf

 

But I want to create set of png files which 'record' the 'autopilot' effects.

After running the each of the two follow commands, I did not see in created 304 .png files any results of 'autopilot' :

 

xaos.exe -threads 3 -render .\ap.xaf -renderframerate 30 -basename .\pngs\frame_

xaos.exe -autopilot  -threads 3 -render .\ap.xaf -renderframerate 30 -basename .\pngs\frame_

 

Looks like in this ap.xaf file 'autopilot' does not take effect in 'xaos -render' command.

Please confirm it, or provide the suggestion how to fix it.

BTW, do you know, besides this site, where users of Xaos can exchange questions, tips, tricks, interesting findings?


Thanks a lot.

The best regards,

-Joseph

Reply all
Reply to author
Forward
0 new messages