How to import .obj file using a .gh file in compute.appserver?

Hello hello helpfull community !

I’m trying to use the compute.appserver and I’m trying to load a grasshopper importing a .obj file

But when I do that some error appears :

System.NullReferenceException: La référence d’objet n’est pas définie à une instance d’un objet.
à Pancake.Component.pcNativeImport.SolveInstance(IGH_DataAccess DA)
à Grasshopper.Kernel.GH_Component.Solution_Compute_MixedAccess(GH_StructureIterator it)

I define an absolute Path (C:/Users/object/myObject.obj) but maybe it’s not the good way to do it ?

I read the post here (which is a good trick ) : Compute.rhino3d.appserver partially empty output when using THREE.JS STL loader - #8 by martinborst1

I wonder if there’s is an other solution to load .obj file in .gh definition which will work in compute.appserver ?

the grasshopper file is very simple if you want to try it : (9.7 KB)


Pancake has bugs in importing / exporting with headless mode (rhino.compute, etc)

I am aware of the issue and hopefully I can send you a fix in a few days.

1 Like

The import 3dm component should also support reading obj files.

1 Like