Grasshopper

algorithmic modeling for Rhino

Text input into GHPython script editor component

I am trying to change some file names using GH and python script editor.

I have a code that works, but as soon as I bring the text inputs outside the component, it does not work. I would like the user to change these input texts from outside the component. please see the PDF attached.

I have also provided the code that does not work.

Thank you

Arsalan

Views: 848

Attachments:

Replies to This Discussion

Arsalan,

Remove the quotation marks from your input text. Also make sure your inputs are set to Item Access with Type hint "str."
I'd suggest using a [FilePath] component for the path in lieu of a [Text] parameter component. This should also be set to Item Access.

Should do the trick.

Best,
/SPM

It did work. Thank you Stephen.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service