Using XformScale in Python


#1

I noticed that this method has changed from Rhinoscript to Python. In Python, you no longer need to define the plane, but only the scale and an optional center point. I found an example @dale had created in Rhinoscript where he used the XformScale method:

http://wiki.mcneel.com/developer/scriptsamples/boxframe?s[]=rhinoscript&s[]=boxframe

How would this look in Python? I will admit that this transformation matrix stuff is pretty much over my head but I’m trying to learn.

Thanks,

Dan


(Steve Baer) #2

There are four versions of XFormScale in RhinoScript. I’ve implemented one of these in rhinoscriptsyntax and can implement the others when users need them. Do you need the version that takes a plane as an input?


#3

No, I was just practicing my Python when I ran across Dale’s boxframe script. I was able to write it in Python without using the transformation methods, but I was curious about the change. I would suggest you don’t spend any time on this on my account as I honestly don’t understand it.

Thanks,

Dan