Here is my working version of the script.
It finds all the panoramic cameras in the scene and saves some data : camera positions, names of views, rendered image file paths,
to a json file. I'm using this in another web app, that works with panoramas.
Thomas
Search found 12 matches
- Tue May 19, 2020 5:19 am
- Forum: Lua Scripting
- Topic: Callback function from button cannot call node inside array
- Replies: 4
- Views: 4139
- Mon May 18, 2020 7:28 pm
- Forum: Lua Scripting
- Topic: Callback function from button cannot call node inside array
- Replies: 4
- Views: 4139
Re: Callback function from button cannot call node inside array
Thank you jobigoud!
That worked.
Importantly, the variable has to be local AND
you must return a function that contains that variable to create the closure.
local id = c; -- stored the global int c in the upvalue id
octane.project.select(renderTarget[id]); -- Access the global array ...
That worked.
Importantly, the variable has to be local AND
you must return a function that contains that variable to create the closure.
local id = c; -- stored the global int c in the upvalue id
octane.project.select(renderTarget[id]); -- Access the global array ...
- Fri May 15, 2020 11:21 pm
- Forum: Lua Scripting
- Topic: Callback function from button cannot call node inside array
- Replies: 4
- Views: 4139
Re: Callback function from button cannot call node inside array
I figured out a workaround. I can pass the index (c) into the callback function by assigning the text property of the button to the index as text, then convert it to a number inside the callback.
Not pretty, but it works.
-- create a button to render target to viewport
local renderTargetButton ...
Not pretty, but it works.
-- create a button to render target to viewport
local renderTargetButton ...
- Fri May 15, 2020 3:34 am
- Forum: Lua Scripting
- Topic: Callback function from button cannot call node inside array
- Replies: 4
- Views: 4139
Callback function from button cannot call node inside array
New lua scripter here. Forgive my naivete in advance.
I am making a script that will get all the render targets in the scene graph that contain panoramic cameras, and then collect data (position, etc), and save it to a json file.
The gui makes a set of buttons for each pano camera found. One will ...
I am making a script that will get all the render targets in the scene graph that contain panoramic cameras, and then collect data (position, etc), and save it to a json file.
The gui makes a set of buttons for each pano camera found. One will ...
- Sat Jan 19, 2019 10:09 am
- Forum: Octane for Unity
- Topic: UV coordintate problem on import orbx into Unity
- Replies: 1
- Views: 1537
UV coordintate problem on import orbx into Unity
Hi
I'm a new user of the awesome plugin.
On my first effort to import an orbx file into Unity, the model came in, with correct textures and materials, but the UV coordinates were off (scalled about 350% too small).
I can see the texture on the object if I dolly way in. I can open the Octane node ...
I'm a new user of the awesome plugin.
On my first effort to import an orbx file into Unity, the model came in, with correct textures and materials, but the UV coordinates were off (scalled about 350% too small).
I can see the texture on the object if I dolly way in. I can open the Octane node ...
- Fri Aug 03, 2018 10:15 pm
- Forum: Octane for Unity
- Topic: Octane for Unity - Installation Guide (rev. July 31st, 2017)
- Replies: 111
- Views: 257348
Re: Octane for Unity - Installation Guide (rev. July 31st, 2017)
Hello.
I own the standalone + Sketchup+OctaneRender® for Unity+OctaneRender® for Unity
I think, after suffering through the SketchUp plugin, I might have earned a spot!
The stressful nights trying to get a deliverable out for clients with that plug-in lead me to the standalone.
Ahh... the stand ...
I own the standalone + Sketchup+OctaneRender® for Unity+OctaneRender® for Unity
I think, after suffering through the SketchUp plugin, I might have earned a spot!
The stressful nights trying to get a deliverable out for clients with that plug-in lead me to the standalone.
Ahh... the stand ...
- Fri Jul 06, 2018 4:49 pm
- Forum: Octane for Unity
- Topic: ORBX Import Problem
- Replies: 10
- Views: 5710
Re: ORBX Import Problem
I am curious if this has been resolved?
I'm having very similar issues.
I'm having very similar issues.
- Fri Jul 06, 2018 1:07 pm
- Forum: Octane for Unity
- Topic: Orbx to Unity _ written protocol?
- Replies: 1
- Views: 1451
Orbx to Unity _ written protocol?
Does anyone have a written protocol for importing Orbx to unity?
This is helpful ...
https://youtu.be/ATWFVViiiJc?t=181
This is helpful ...
https://youtu.be/ATWFVViiiJc?t=181
- Thu Mar 30, 2017 11:04 pm
- Forum: SketchUp
- Topic: Sketchup render animation with Octane
- Replies: 6
- Views: 7159
Re: Sketchup render animation with Octane
I have run into an annoying limitation with this technique.
Octane Standalone limits the number of scenes that it will convert to Render Target nodes to 8.
No matter how many scenes I have in my Sketchup project, its always no more than 8 of them make it into octance standalone (as render targets ...
Octane Standalone limits the number of scenes that it will convert to Render Target nodes to 8.
No matter how many scenes I have in my Sketchup project, its always no more than 8 of them make it into octance standalone (as render targets ...
- Sat Mar 18, 2017 5:00 pm
- Forum: SketchUp
- Topic: Sketchup render animation with Octane
- Replies: 6
- Views: 7159
Re: Sketchup render animation with Octane
So the workflow to get a walkthrough animation out of sketchup and rendered with octane:
1) build your sketchup project. Each scene contains a camera view
2) export the sketchup project to the octane standalone by exporting as a .ocs (I think this is better than orbx for animtion).
3) open octane ...
1) build your sketchup project. Each scene contains a camera view
2) export the sketchup project to the octane standalone by exporting as a .ocs (I think this is better than orbx for animtion).
3) open octane ...