How to get FilePath inside a Cluster

Hello,

GrasshopperDocument.FilePath returns Null in a cluster.
How can i get the GH document filepath ?

Thanks in advance,
JLH

Grasshopper.Instances.ActiveCanvas.Document.FilePath
When you’re inside a cluster you will get null, but when you close the cluster editor, everything works fine.


JLH.gh (13.5 KB)

1 Like

So it won’t work for my usage, since i need to do something with “filename” in the cluster…

The main reason of creating a cluster is to use it on main canvas; you can actually do whatever you want, but it would only work when you’re outside the cluster.


JLH.gh (15.1 KB)