It is probably a very newbie question, but I wonder what is the benefit of using RhinoScriptSyntax in Python in opposite directly using Rhino common API? The simple example it’s possible to make a point using both ways (Rhino. and RhinoScriptSyntax.) but in which cases RhinoScriptSyntax is helpful or vital so to say?
import rhinoscriptsyntax as rs
from Rhino import Geometry
Pt0 = Geometry.Point3d(1,1,1)
Pt1 = rs.CreatePoint(1,1,1)
The RhinoScriptSyntax module contains hundreds of easy-to-use functions that perform a variety of operations on Rhino.
It’s a module for convenience build to mimic the methods available in RhinoScript
I’d say RhinoScriptSyntax is not vital, just helpful and convenient as it’s all (Rhino)Python there is nothing in there you cannot do with Python and RhinoCommon.
What I’d say is more conveniant are the hints that you get while using RhinoScript in GhPython e.g it’s easier to find out what are the input variables needed for specific method. But sometimes using rhinocommon itself becomes more conveniant, for example when I know already some method from C# or I found it already in rhinocommon documentation, then I don’t waste time to find how to do it with RhinoScript.
Yes, in this case it doesn’t make much difference.
But when working with RhinoObjects or Layers or Views etc. rhinoscriptsyntax could let you write a shorter code.
I’d say in case you want to do operations on the geometry you generate before adding them to the rhinodoc, it’s much easier to do everything directly in RhinoCommon and only add things to the rhinodoc when your operations are finished.