Load material from file to layer in rhinoscript
How can I load a material from file in Rhino 6+ in Rhinoscript? This is what was working in Rhino4: Function LoadMaterialToLayer(MatFilename, LayerName) Set RDK = Rhino.GetPlugInObject("Renderer...
View ArticlePurge Layer not working
Hi, I am trying to use the PurgeLayer function in Rhionscript and it is failing to delete the layer in the screen shot. The layer has children, all of which have geometry in them. I want to delete the...
View ArticleWhy Rhino Script Compiler Build the current project errors ?How to solve it?
2 posts - 2 participants Read full topic
View ArticleGet UV plane of Surface using python
Hi I am trying to get the UV plane of a surface using python. Can anyone help? If I was doing this in grasshopper, I would use the evaluate Surface component, put a uv point of 0.5,0.5, reparametrize...
View ArticleUtilizing Rhino Common SDK with python
Does anyone know how to implement Rhino common methods within python scripts ? I see many interesting methods like Curve.CreateFilletCurves but am not sure how they are implemented and all the...
View ArticleRead E57 pointcloud in IronPython
Has anyone found a way to read pointclouds with E57 format in IronPython or C++? Regards, Terry. 3 posts - 2 participants Read full topic
View ArticleAngularDimension.NumericValue unit
In Rhino 5 Rhino.Geometry.AngularDimension.NumericValue property, returned value in degrees, as it has been mentioned in the online documentation:...
View ArticleRandom points inside box! Looking for ideas
Hi everybody, I need to recreate a similar behaviour than what the Pop3d (Populate 3d) component does in Grasshopper, but in RhinoPython for a project. I’m basically looking for a way to populate a...
View ArticleImport options C#
Hi, With C # I am trying to import a sketchup file with: Rhino.RhinoDoc doc = Rhino.RhinoDoc.CreateHeadless (null) ;; doc.Import (“Sample.skp”); The problem I am dealing with is that I cannot specify...
View ArticleSubd Toggle state
Is there a way to see what the current subD display state is? If it’s either flat or smooth. I have a script I use for the various points on commands and I would like it to use PointsOn when in flat...
View ArticleC# modifying a List within a loop?
Hello! This is some test code for and agent based script. The problem is I can’t .Add () to the list of agents after I first declare and populate it. I don’t get an error, but no output is generated....
View ArticleNeed help with python component
i have made thes two adjustable lofts and now I would like to add a top and a bottom surface. These surfaces should be made from the edges of the two lofts. image1470×759 161 KB how do I get these two...
View ArticleIdentifying object from string
I have some objects stored in UserText in another object. These are saved as strings. How do I treat this a an actual object later on, when retrieving it from GetUserText, and not just a list of...
View ArticleRender & Volume Python
Hi, Does anyone know of a python code that can open rhino on a networked machine, calculate the volume of a jewellery model and then send it to a render farm code to render in different materials. A...
View ArticleAdding x amount of lines
Hi there I’m currently working on a simple alignment script that is pretty similar to PerspectiveMatch for when we have a photogrammetry model of a site and a satellite photo. What I’d like to do is...
View ArticleAscii codec can't decode character
Hi everyone. We are receiving more and more files that contain fonts in the layers names or in the file name that cause me this message: image1417×823 120 KB Do you have any solution to avoid this? 6...
View ArticleModify Instance Definition Slow
Using the, InstanceDefinitions.ModifyGeometry() to modify multiple blocks with python in a command. sometimes it is very fast and other times it is very very slow. Are there any tricks or tips to...
View ArticleVariable Curve.OffsetOnSurface
Documentation states that since Rhino 5 there is an overload method to offset a crv on a surface, by variable distances:...
View ArticlePython message error
hello!!! what does mean: , when i launch the python script from the Python editor, the script run, but from the button with ! _-RunPythonScript “script.py” it give this message… 1 post - 1 participant...
View ArticleIsVectorParallelToPlane
what is the simpler way to verify if a vector or a line is parallel to WorldXYPlane? i Can substract Z coordinates of the start and the end point of the line, if it’s equal to 0 the line is parallel....
View Article