Hello,
Is there a way for GH to be aware of the Rhino Preference setting that disables isocurves for new objects? I cannot see an isocurves setting in GH preferences. I have searched, but cannot find the answer.
Regards, Garry.
Hello,
Is there a way for GH to be aware of the Rhino Preference setting that disables isocurves for new objects? I cannot see an isocurves setting in GH preferences. I have searched, but cannot find the answer.
Regards, Garry.
i think you may have to do a script for custom bake as such:
__author__ = "wwang"
__version__ = "2025.10.29"
from Rhino.RhinoDoc import ActiveDoc as rdoc
from Rhino.DocObjects import ObjRef as oref
i = rdoc.Objects.Add(x)
o = oref(i)
ro = o.Object()
ro.Attributes.WireDensity = n
ro.CommitChanges()
rdoc.Views.Redraw()

@Will_Wang Thank you for your input. I have been trying to get this going, with some changes to overcome other errors. Despite lots of searching, I am stuck on a Python error. When I type the failing line, after each dot the prompts provide the expected Attributes and WireDensity entries in the lists. That suggests to me that ro is correctly referencing the object, yet the error indicates that Attributes is not available for the context.
In any case, from what I can see, the WireDensity setting is only available for curves and surfaces, unless I have misread the situation. In order to get this far, I have connected the Python component to a Surface created within GH, instead of the intended Box.
Regards, Garry.
autocomplete doesn’t mean the object is valid. the error says ro is still None so it’s not pointing at the object correctly
also looks like you’re trying to edit something already in the rhino document. that x should be a Guid
@Will_Wang It appears that Redraw is not required.
Contrary to my earlier comment, Python can turn off Isocurves for solids too.
From other advice https://discourse.mcneel.com/t/grasshopper-guid-input/211740/2 it appears that GH Python does not have access to the GUID of objects which are created within GH.
I have attached working Python scripts which operate within Rhino to:
Create a box.
Turn off the isocurve for a selected object.
Create a box and turn off its isocurve.
Given the lack of access o the GUID, I will reconsider the use of GH. I will consider a Rhino Python solution without GH.
Thank you for your help.
Regards, Garry.
AddBox.py (1.1 KB)
IsocurveOff.py (451 Bytes)
AddBoxNoIsocurve.py (660 Bytes)
I have now discovered that the GUID is obtainable, but I now have to see if it can be obtained immediately as part of the GH creation process.
Regards, Garry.
Hello,
The GUID of a Rhino object created within GH cannot be obtained immediately as part of the GH creation process. Grasshopper GUID input - #12 by clement
GH requires the Bref etc to be set manually after the object has been created.
Regards, Garry.