Page 2 of 3

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 10, 2013 7:32 pm
by stratified
pixelrush wrote: So here is some messing around with UI elements to pass as homework 8-)
Questions for boss coders -
-can you nest a group? possibly not...
-will we be able to run favourite scripts in the Octane UI from either from a pull down list or via an icon?
Nesting groups is possible. In the tutorial we nest all the groups in the layout group.

You can set up a script directory in your preferences. Then when you click "reload scripts" from the script menu you should see all your own scripts in the script menu (below the seperator). You can run them by selecting them from the menu. When running a script from the menu, the output goes to the log window and on error it shows a dialog.

Looked at your homework :D looks great, we can hook up spiraling later in your UI.

cheers,
Thomas

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 10, 2013 7:41 pm
by pixelrush
Hmmm OK, so no line numbers presently. Bugger... :|
Perhaps however there is room for small buttons for copy/paste/undo/redo at the bottom or an 'Edit tools' list box? - just for coding cretins like myself to get a handle on basic editing. :geek: Blenders python scripting window might be a useful reference here -

...nest groups in the layout.. yeah ok for some reason i thought that would mess up the slider width, so I will have another try at that for practice..
In the case of say the turntable or sun transit they might want to live in a toolbar as an icon again but I suppose what you have lined up with the script directory is fine. Remember to put that aspect in the manual ;)

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 10, 2013 8:24 pm
by phdubrov
pixelrush wrote:Hmmm OK, so no line numbers presently. Bugger... :|
...
Just use external editor.
Editor -> save to script dir -> Octane-reload -> Editor - edit -> Editor Ctrl-S -> Octane - Script Menu run -> Editor - edit ->...

Now thinking how put all help information in XML(.cix) file for KomodoEdit.

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 10, 2013 9:07 pm
by pixelrush
I guess, but if there is one in Octane it ought to do the basics, like line numbers, autocomplete would be handy too.
Perhaps we could have an option in the Octane preferences to open scripts in an editor of your choice or the default internal one?

Anyway I suppose we are doing our community beta review bit and finding the issues...

So waiting on Turntable - Part 2 then ;)

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 10, 2013 9:36 pm
by stratified
pixelrush wrote:I guess, but if there is one in Octane it ought to do the basics, like line numbers, autocomplete would be handy too.
Perhaps we could have an option in the Octane preferences to open scripts in an editor of your choice or the default internal one?

Anyway I suppose we are doing our community beta review bit and finding the issues...

So waiting on Turntable - Part 2 then ;)
Roeland made an effort this morning to show line numbers, will be available in the next release candidate ;)

cheers,
Thomas

Re: Turntable animations in Lua (part 1)

Posted: Wed Dec 11, 2013 3:13 am
by pixelrush
Well Roeland is obviously looking for a Xmas bonus then :lol: Thanks for the extra effort guys, appreciate it. :)
I guess the alternative is to call whats in Octane a Lua Viewer and have people with a serious mission do their scripts in, say, Notepad++ by association in the preferences. Probably Notepad++ has better functionality than could realistically be included in Octane. Anyway all good, carry on....

Re: Turntable animations in Lua (part 1)

Posted: Wed Dec 11, 2013 4:46 am
by Tugpsx
Great job on the editor. nice start and color coding works well so far.

Re: Turntable animations in Lua (part 1)

Posted: Wed Dec 11, 2013 5:48 am
by stratified
pixelrush wrote:Well Roeland is obviously looking for a Xmas bonus then :lol: Thanks for the extra effort guys, appreciate it. :)
I guess the alternative is to call whats in Octane a Lua Viewer and have people with a serious mission do their scripts in, say, Notepad++ by association in the preferences. Probably Notepad++ has better functionality than could realistically be included in Octane. Anyway all good, carry on....
yeah for serious work you should probably use an external editor. I rarely use the script editor in Octane :oops:

Well we can add an external editor in the preferences but I don't think it will save you that much time. I always use drag and drop on the script editor or execute the script from the script menu while coding.

cheers,
Thomas

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 17, 2013 12:05 am
by radiant
While messing around i have found that wtih the workflow it would be more benefical to have:

  • Ctrl+f Serach
    When running a script you should be able to edit the script once it is still up, not locking it.

Re: Turntable animations in Lua (part 1)

Posted: Tue Dec 17, 2013 12:15 am
by stratified
Hi radiant,

I'll add search on our TODO list.

Live-editing while running the script is not trivial, not sure if we want to go that road...

cheers,
Thomas