Quantcast
Channel: Rhino Developer - McNeel Forum
Browsing all 8539 articles
Browse latest View live

How to cleanup material table using IO File3dm class

I want to purge all materials from file or decide sometimes which need to stay. So I wrote something simple at the beginning: using (var tempFile = File3dm.Read(tempPath)) {...

View Article


Image may be NSFW.
Clik here to view.

Is it possible to carve a text on an object

Hi I have a task to carve a text on an object in Unity game engine. This may be a stupid question so sorry for that Is it possible to write a Rhino script that will do that ? Like create a script that...

View Article


What is the rhino c++ api function for cmd Flow?

Hi, My system is Rhino 6 C++ SDK. I want to flow a object along a curve by api function, not by run cmd script. How can I do? Please give me a sample. 5 posts - 3 participants Read full topic

View Article

RhinoCommon LightObject rotation, size and direction

Hi How do I get the rotation (ie. amount of spin around the direction of the light) of a WorldRectangular light please? I also need the length and width of the light source, but the...

View Article

Image may be NSFW.
Clik here to view.

Retrieving a points name and translate that value into a vector

I am new to VBScript and am attempting to make my first GH component and am in need of some direction. The initial goal of the script is to retrieve the name of a given geometry, in this case a point...

View Article


Set Icon broken in latest SR candidate?

Our plug-in stopped working in the latest SR26 candidate because setting the Icon property of a dialog now throws the error below. This issue is new as of the latest SR candidates (that is, it does...

View Article

How do I set predefined path to CRhinoGetFileDialog (c++)?

Hi; In my code, how do I set predefined path? CRhinoGetFileDialog gf; gf.SetScriptMode(context.IsInteractive() ? FALSE : TRUE); BOOL rc0 =...

View Article

Wish: publish rdk procedural texture algos

It’s not like some other 3D application is gonna steal Rhino customers by copying them, and it would sure be nice to be able to replicate them faithfully in our engines and avoid baking. 1 post - 1...

View Article


Image may be NSFW.
Clik here to view.

Feature or plugin idea? kbSnap?

I’ve been inspired by the selection system on qutebrowser. It basically puts a two-character cue on each selectable thing so you can just type the two character tag to make that selection. 696×420...

View Article


C++ FindByUserString

The C# API has a ObjectTable.FindByUserString function. Is there an equivalent function available to the C++ API? 1 post - 1 participant Read full topic

View Article

Adding Instance Reference from ActiveDoc to File3dm

I am trying to add Instance Objects from my rhino file to a File3dm to save out. The Instance Objects are embedded block instances. I have successfully added the block reference to the new 3dm block...

View Article

Vertex Numbering and Mesh Mapping

Hello All, I’m working on a numerical procedure with meshes and lines. I retrieve a number of meshes and lines, each one with some properties (density, initial stresses, etc). What I need is to have a...

View Article

Print within c# class

Hi all, I am trying to use Print(msg) within a class in c# component and got this message - Error (CS0038): Cannot access a non-static member of outer type ‘Script_Instance’ via nested type...

View Article


Wait interface Redraw

Hello I have a class that I use with my skin, basically do this: RhinoApp.RunScript("_-New _None", false); // Open New Document Rhino.RhinoApp.RunScript("_ViewportTabs _Hide=Yes ", false); // Hide...

View Article

Point Rotation

I was wondering if there is some quick way to get point rotation. I’m asking as when a point is rotated using gumball the gumball remembers its state - ofc it can be that gumball remember state per...

View Article


C# component crashes when generating List

Hi! My c# component crashes when I try to return a list of points and only works when I return a single point. I can´t see what I´m doing wrong. Help. Thanks. Code below: **//public Point3d Pt()...

View Article

Image may be NSFW.
Clik here to view.

Rhino3dmIO Geometry.Leader Plain Text empty

Hi all, I am trying to read the content of a Leader Text but the PlainText property is empty. I’ve also tried to cast the Leader to an AnnotationBase but I get the same result: plainTextEmpty1368×757...

View Article


AssemblyInfo Guids between Food4Rhino, Rhino, Grasshopper, Yak files

When creating an accompanying set of plugins for Rhino and Grasshopper (or seperately), there are quite a lot of places where Guids seem important. It is for me not very transparent how or when they...

View Article

AddText() disabling "orient text towards reader when viewed from behind" in code

Good evening, I have a problem when creating a text with Python. In the default text style the option for “orient text toward the reader when viewed from behind” is checked. Of course I could change...

View Article

Image may be NSFW.
Clik here to view.

Capture Image Inside Task

I have this method that captures an image and saves it in a location: public void SaveImage() { string ImageName = @"C:\"; var doc = Rhino.RhinoDoc.ActiveDoc; var view = doc.Views.ActiveView; var...

View Article
Browsing all 8539 articles
Browse latest View live