algorithmic modeling for Rhino
Dear All,
I have a problem with this script included in the component "GHPython"...
apparently there are no errors but the result is null.
I used these two components for surfaces:
rs.AddSrfControlPtGrid(arrCount, Grid, degree=(5,5))
rs.AddSrfPtGrid(arrCount, Grid, degree=(5,5), closed=(False, False))
And this is the script:
Thank you in advance for any help!
Thank you! ^__^
||||||||||||||||| SCRIPT BEGIN |||||||||||||||||||
Tags:
I didn't test it but as far as I can see there are two problems with this script:
1. You don't return the surfaces from the function.
2. You don't assign the result to Python component output.
I attached a modified file for you. I commented between the lines.
Mostapha
Sorry for my ignorance -___-
... but how can I "assign the returned value to Python component output"?
Thank You Again ^_^
surfaceNewPT = CreaNuovaSuperficieBezier ()
Ahhh! Ok, ok, I made it!
I have written in the right column of the component "GHpython" the value names:
surfaceNewCPG2
surfaceNewPT2
..and now it's all right! ^__^
I also learned an important lesson about Python language through the use of the command "return"... I am a beginner, sorry.
Thank You!
Thank You!
Thank You!
I link, for complete information, the working script (your script without some of my unnecessary lines).
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by