Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

RhinoObject.UserDictionary not available in V8

$
0
0

Hi @dale,

in Rhino 7 i was able to store things in a rhino object’s UserDictionary and if i accessed it, i got an ArchivableDictionary. Trying below gives None using Rhino 8:

import Rhino
import rhinoscriptsyntax as rs

def DoSomething():
    
    brep_id = rs.GetObject("Brep", 16, True, False)
    if not brep_id: return
    
    rh_obj = rs.coercerhinoobject(brep_id, True, True)
    
    print rh_obj.UserDictionary

DoSomething()

this broke a lot of my scripts. Is this a bug ?

_
c.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles