Orca3D Talk!
May 18, 2013, 11:19:12 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Orca3D Rhinoscript Referencing  (Read 459 times)
jdubu11
Newbie
*
Posts: 3


View Profile
« on: April 11, 2012, 12:05:11 PM »

Hi, I have a question concerning the names given in Orca3D. When Orca3D generates a hull from the hull assistant, it automatically names the “Hull”, “Deck”, and “Transom”. Is there a way to reference those names in rhinoscript?
The only thing I’ve found is to call the thirty-something digit id code rhino references to each, but that’s not really an option. Any advice you have would be great.

Thanks,
Josh
Logged
lleibman
Sr. Member
****
Posts: 78


View Profile
« Reply #1 on: April 11, 2012, 01:48:41 PM »

Hi Josh,

There are two ways you can make reference to Rhino objects with names in a script.

One is to use the Rhino command "SelName" to select objects by name, e.g. Rhino.Command "SelName Hull". Then you can operate on the hull with commands that use the current selection. Similarly you could use the Rhinoscript method, Rhino.ObjectsByName to find objects with a specific name.

A second is to use the Rhinoscript method, Rhino.ObjectName, to query and objects name and then do something if it matches a specified name.

Hope this is what you are looking for.

Larry
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!