Turntable animations in Lua (part 1)

Forums: Turntable animations in Lua (part 1)
Forum for OctaneRender Lua scripting examples, discussion and support.

Re: Turntable animations in Lua (part 1)

Postby stratified » Tue Dec 10, 2013 7:32 pm

stratified Tue Dec 10, 2013 7:32 pm
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
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Turntable animations in Lua (part 1)

Postby pixelrush » Tue Dec 10, 2013 7:41 pm

pixelrush Tue Dec 10, 2013 7:41 pm
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 ;)
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
pixelrush
Licensed Customer
Licensed Customer
 
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Re: Turntable animations in Lua (part 1)

Postby phdubrov » Tue Dec 10, 2013 8:24 pm

phdubrov Tue Dec 10, 2013 8:24 pm
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.
phdubrov
Licensed Customer
Licensed Customer
 
Posts: 15
Joined: Sun Mar 03, 2013 1:47 pm

Re: Turntable animations in Lua (part 1)

Postby pixelrush » Tue Dec 10, 2013 9:07 pm

pixelrush Tue Dec 10, 2013 9:07 pm
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 ;)
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
pixelrush
Licensed Customer
Licensed Customer
 
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Re: Turntable animations in Lua (part 1)

Postby stratified » Tue Dec 10, 2013 9:36 pm

stratified Tue Dec 10, 2013 9:36 pm
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
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Turntable animations in Lua (part 1)

Postby pixelrush » Wed Dec 11, 2013 3:13 am

pixelrush Wed Dec 11, 2013 3:13 am
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....
i7-3820 @4.3Ghz | 24gb | Win7pro-64
GTS 250 display + 2 x GTX 780 cuda| driver 331.65
Octane v1.55
User avatar
pixelrush
Licensed Customer
Licensed Customer
 
Posts: 1618
Joined: Mon Jan 11, 2010 7:11 pm
Location: Nelson, New Zealand

Re: Turntable animations in Lua (part 1)

Postby Tugpsx » Wed Dec 11, 2013 4:46 am

Tugpsx Wed Dec 11, 2013 4:46 am
Great job on the editor. nice start and color coding works well so far.
Dell Win Vista 32 | NVIDIA Quadro NVS135M | Core2 Duo T7500 2.20GHz | 4GB
CyberPowerPC Win 7 64| NVIDIA GTX660Ti (3G) GTX480(1.5G) | 16GB
Tugpsx
Licensed Customer
Licensed Customer
 
Posts: 1145
Joined: Thu Feb 04, 2010 8:04 pm
Location: Chicago, IL

Re: Turntable animations in Lua (part 1)

Postby stratified » Wed Dec 11, 2013 5:48 am

stratified Wed Dec 11, 2013 5:48 am
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
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand

Re: Turntable animations in Lua (part 1)

Postby radiant » Tue Dec 17, 2013 12:05 am

radiant Tue Dec 17, 2013 12:05 am
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.
Win8 Pro 64bit ULT|Intel Core i7 3930K|3.20 GHz|32 GB RAM|GTX 590|UD5 2011 socket||2x TB HD||Master Cooler HAF X||Blender 2.6||Maya 2012||Octane|
User avatar
radiant
Licensed Customer
Licensed Customer
 
Posts: 699
Joined: Mon Apr 05, 2010 12:00 pm
Location: Adelaide, Australia

Re: Turntable animations in Lua (part 1)

Postby stratified » Tue Dec 17, 2013 12:15 am

stratified Tue Dec 17, 2013 12:15 am
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
User avatar
stratified
OctaneRender Team
OctaneRender Team
 
Posts: 945
Joined: Wed Aug 15, 2012 6:32 am
Location: Auckland, New Zealand
PreviousNext

Return to Lua Scripting


Who is online

Users browsing this forum: No registered users and 4 guests

Tue Jun 04, 2024 12:09 am [ UTC ]