Grasshopper

algorithmic modeling for Rhino

C#- Grasshopper _ Saving inputs and outputs while creating UserObject

Hi Everyone, 

The following image shows my problem, 
[1] I have created plugin for Grasshopper which imitates GHPython but it is based on CPython, 

[2] When I creat custom user object using this plugin, it is created properly. However, [3] when I initiate the component in the canvas, input and output names return back to their original values,

How can I save them using Read and Write override functions?

Thanks so much.
https://github.com/MahmoudAbdelRahman/GH_CPython 

Views: 557

Replies to This Discussion

Can't see the error just by looking at the code, all seems to be correct.

If you put breakpoints on the Read() and Write() and VariableParameterMaintenance() methods, can you see whether the name is correct or incorrect there?

Thanks so much David for your support,

I will try it. Yes, I think VariableParameterMaintenance() method would be great for that. 

Hi David, 
Thanks so much, 

Now everything is working fine. 

Thanks for your support.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service