Hi
I’m having this problem with a simple script in a grasshopper definition
You have to select one object and then all the objects with the same name are selected and a message is shown in the command line bar.
I open the grasshopper definition in the grasshopper player,everything works fine except that it shows the message twice.
If I#m running it within grasshopper, everything works fine.
I checked some similar problems but could not find a solution. I am a Python beginner.
Script:
import Rhino as rc
import scriptcontext as sc
import rhinoscriptsyntax as rs
The Y argument gives only one entry so it is executed only once. (Pict 1)
I understand the “concatenating” solution in Python but then I still need to use the “WriteLine” function. When I use only text, it still doubles in the command line. Maybe I’m wrong but that would happen too when concatenating in Python in the script, right?
sounds logical Mr.Measure.
I tried several ways to locate the source and in the end it were 3 containers left as suspects(get geometry, model object, query model object).But it only happens when the grasshopper definition is called through grasshopper player, then it shows twice. When used in grasshopper it shows, correctly, only once.