Found This Thread
But can anyone tell me to extract Just the File Name?
Thank You
Found This Thread
But can anyone tell me to extract Just the File Name?
Thank You
I think this is what you’re looking for (python):
import Rhino
print Rhino.RhinoDoc.ActiveDoc.Name
-Kevin
Thank you @kev.r … I’m new to Python, how exactly does this work?
Just copy the text I posted and paste it into a GhPython Script component.
Instead of printing the value you could assign it to output a if desired.
-Kevin
@kev.r Thank You!
A little late to the party, but from the first screenshot the python code appears to need parens around “Rhino.RhinoDoc.ActiveDoc.Name”. Otherwise, thanks for the tip! -W