How to export from processing to Sketchup?
-
Hello everyone!
Can someone tell me whether it is possible to somehow output geometries from processing to Sketchup?
-
i Wiktor,
I think it should be possible. There are a number of free importers for various data formats - .stl, .ply, .dxf, .dae, .obj. If Processing can output the geometry in one of these, or even a custom format, then you should be able to import the data via one of the existing plugins or even a custom plugin.
-
It depends on the format of the data that you have.
There are several importers available - either SUp-native[dae], SUp-pro[dxf/dwg] or 3rd-party-scripts[obj/csv/stl] etc - to get data into a SKP.
If the data is in a particular 'text' format it possible to parse the contents of a file and use the data for SKP geometry... Of course you need to know what the format is and what the various parts 'mean' etc... -
Oh thanks guys! Interesting. I am also very new to processing and never exported anything out of it. But lets say I made a 3d cube in processing and I want to see it in sketchup... Do you know of any resources for dummies that would show me how to do that?
-
What is 'processing' and what formats can it export into ?
You're not giving us much to go on here... -
Here ya go TIG: http://processing.org/ I've been using it to prototype embedded web content. It's quite fun and a very simple language to learn.
To Arystoteles: You might consult the Processing forums as there are a number of threads discussing object exporting that you might find informative and relevant to SU. The link the Processing forum is here: https://forum.processing.org/allforums
Currently Processing has fairly good facility for exporting .dxf files. Here's a simple example:
import processing.dxf.*; boolean record; void setup() { size(500, 500, P3D); } void keyPressed() { // use a key press so that it doesn't make a million files if (key == 'r') record = true; } void draw() { if (record) { beginRaw(DXF, "output.dxf"); } // do all your drawing here if (record) { endRaw(); record = false; } }
Sketchup 7 allowed .dxf import via a separately available plugin, I'm not sure about SU8 as I don't use .dxf files myself. TIG would know better about that I'm sure.
Cheers.
-
Thanks...
It seems to have a DXF writer option... If you get v7 [still available] it has a free DXF importer; v8-pro has a DXF importer and there are some free DXF importers too...
It also has a 'text' writer option to write data to a text file, these files can be used to read in 3d data and make geometry too, using 3rd-party tools... There is also talk about exporting OBJ/STL etc so it seems to have a plethora of options...So the question is... how are you going to export the data, and then how to import it into a SKP...
-
@unknownuser said:
So the question is... how are you going to export the data, and then how to import it into a SKP...
Maybe you can make with it something that plugins yet existing in Su don't make
Processing is very powerful and don't take in case any exploitation system so works directly in any one and for any one!
So you don't lost time to see in deepth the painfull Windows or osx or linux or...!This guy has made some artistic exploration with it!
I had used it for this inverse
One little form from in SU, image in Processing
My code is here
Advertisement