THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/03/2011 at 09:04, xxxxxxxx wrote:
Hey there,
I'm learning Python and the way I do this is by creating my first super-simple plugin.
Among other controls, this plugin should have link fields, but I don't understand how to set them up.
To be more precise, I want to create something like this:
http://www.thirdpartyplugins.com/python/modules/c4d.gui/BaseCustomGui/LinkBoxGui/index.html
Do I create them at the Init-function, where I set up my other controls?
# initualizing the controls
def Init(self, op) :
self.InitAttr(op, float, [c4d.PY_VECTOR_1])
op[c4d.PY_VECTOR_1] = 200.0
...
#HERE?????
return True
And what would be the best way to use i.e. the position of the object that has been dragged into this very link field in python?
Thank you very much for your help!
Robibert