Quantcast
Channel: Scripting - McNeel Forum
Browsing all 4152 articles
Browse latest View live

Transparent Background? -ViewCaptureToFile

Hello, I am working on a python script that is supposed to make a image for the current view, then hide the current layer, show the next layer and repeat. I was having difficulty with the...

View Article


Sel large meshes?

Is there any way to ask Rhino to select meshes over a certain poly-count? I’m dealing with some bloated maya files and it would be great to select meshes over a certain size so I can run ReduceMesh on...

View Article


CurveClosestObjects problem

Hi all, Please help me with this issue. Why do I get a: “Runtime error (TypeErrorException): Parameter must be a Guid or string representing a Guid” in the rs.CurveClosestObjects section? text_min =...

View Article

RhinoPythonShell

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Image may be NSFW.
Clik here to view.

Inflection points with GhPython

Hello Using curvature and intersection give close result but intersection always need to check the new curvature curve The script created by @dale work fine but i don’t understand how to convert it to...

View Article


Image may be NSFW.
Clik here to view.

Remove Sketchup export warning window

I would like to get rid of this message everityme I export as sketchup file, is it possible? sketchup export issue881×548 34.9 KB 9 posts - 3 participants Read full topic

View Article

Image may be NSFW.
Clik here to view.

Import Material from Materials Library

Hi, Looking for a way to import a custom material from a library of materials I am developing. I want to import these materials into the Rhino document and then assign them by selection to different...

View Article

Python rhinoscriptsyntax equivalent of "RebuildMeshNormals"?

I see rs.UnifyMeshNormals, but not Rebuild. There is the RhinoCommon Mesh.RebuildNormals method, but maybe there should also be a rs shell made available (unless I missed where it is…)? Something like...

View Article


Some learnings on developing a fast Python/C++ script for importing a mesh...

In the C++ code below, a new_mesh is created using ON_Mesh and then populated with vertices and faces and it all works fine. But if new_mesh turns out not to be valid, then should new_mesh be deleted...

View Article


VB Blocks inside blocks

I am trying to write a VB RhinoScript that finds objects with certain usertext associated with my Weight Estimating system, then show and select them. That part is easy. I also look through each block...

View Article

ApplyPlanerMapping

Hi, Is there a way of scripting the command “ApplyPlanerMapping”? Python script if possible for Rhino 6. Alternatively, a way of doing this with RhinoScript Command Function. Thanks, Eric 3 posts - 2...

View Article

RhinoPython, DivideCurve, join points

Hi, I’m doing Rhinopython for the first time and I trying to divide two lines that I created and then join the points form those two lines. This is what I have so far; r_bot1 = Point3d(d1,d1,d1)...

View Article

Get Full Path of PBR Textures

Hoping someone can help me with this. Trying to write a script to consolidate all the textures used by a Render Material into one folder. Often times I’m pulling from a library but need to consolidate...

View Article


Image may be NSFW.
Clik here to view.

Join disjoint curves into closed curve

Hello everyone, I am working on a function that will join a collection of curves into a single closed curve, based upon the closest endpoints. You can read more detailed comments in the .gh file, but...

View Article

Python Esc cancel does not work in rhino 6 osx

Trying to make a cancel-able python script on mac in rhino 6. script: import rhinoscriptsyntax as rs import Rhino def TimeConsumingTask(): for i in range(10000): # Was escape key pressed?...

View Article


Curly braces are removed from text set with Rhino.TextObjectText using VB Script

It seems that the Rhino.TextObjectText function called from a VB Script removes all curly braces “{” and “}” from the text to be written into a text object. It works from the UI though. I have tried...

View Article

Should I learn Python for Rhino or for Grasshopper

Hi All I am wondering which platform in which I should to learn/use Python in as I know that we can use it in the Rhino Interface or in Grasshopper. Would someone has any advise? Many thanks! Yutaka 3...

View Article


Image may be NSFW.
Clik here to view.

Return all Material Names in Document

Hi, Is there a function that will return the names of all the materials in a file or check to see if one exists by its name? I see one for VBScript but not Python? developer.rhino3d.com...

View Article

Sorting bouding box

hello… i’ve got a lot of bounding box to sort by thickness, i have 3 thickness 3, 2 and 1, i want to orient it with the thickness on Z axis, then the longuer dimension on Y axis, and The last...

View Article

Image may be NSFW.
Clik here to view.

'ZuiPythonComponent' object has no attribute 'WireDisplay'

Hello How i can solve this problem and find which components need input.WireDisplay or directly obj.WireDisplay? Panel for example, the wiredisplay can changed by use: if obj.Name == “Panel”...

View Article
Browsing all 4152 articles
Browse latest View live