Grasshopper

algorithmic modeling for Rhino

Hi all,
copying some code into a script component,
I must have done something wrong ...
I think I copied back also the code after   //</Custom additional code>
and then tried to delete it because the component
complained about duplicate definitions.
Anyway, now my script has no code after   //</Custom additional code>
and (I think obviously) raises a lot of errors.

I thought to build a new script component, adding
all the same params that the old component has,
and then copying (more carefully) my code there ...

But I also thought to ask here before having to
set up (again) all those params ... should
there be a faster way to 'fix' the script's code...
just in case.  :)

Thanks anyway !
Cheers
Emilio

p.s.
definition attached

Views: 188

Attachments:

Replies to This Discussion

If the code came from an existing scripted component why don't you just copy and paste the entire component into a new definition?

Otherwise, where is the code from?
The code is what I write using a text editor,
and save into a text file.
Than I have to copy it into the component
(and test / debug it until it ... hopefully ... works).

Anyway, as I said, not a big deal, I'm just
curious to know if there's a way to fix it.
And maybe to learn how not to repeat this mistake.
Please disregard this.
The errors I see are all 'normal' syntax errors.
The component seems not to worry about
the (missing ?) code after //
My mistake.

Cheers
Emilio

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