How to get FilePath inside a Cluster

#1

Hello,

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

Thanks in advance,
JLH

0 Likes

#2

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)

0 Likes

#3

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

0 Likes

#4

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)

0 Likes