algorithmic modeling for Rhino
Hello Junglists,
I am trying to use sliders and Python to change the output of my graph mapper. What I got is:
import Grasshopper as gh
for obj in ghenv.Component.OnPingDocument().Objects:
if type(obj) == gh.Kernel.Special.GH_GraphMapper and obj.NickName == "Offset":
print "True!"
This is working and prints "True!".
I also found gh.Kernel.Special.GH_GraphMapper.GetValue/SetValue. But I don't understand the help for those two methods. Not even if they are the ones I am interested in.
Tags:
The range is stored in an internal GH_GraphContainer and set directly via the GraphEditor. If I remember this right, Get/SetValue is the default way of a parameter object to interally access the stored data.
Somehow I didn't see the container was exported as a public property. I was referring to it's type, which is Grasshopper.Kernel.Graphs.GH_GraphContainer.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by