Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/05/2012 at 11:46, xxxxxxxx wrote:
hiho,
i thought it would be fun to try, what is discussed here, but i ran into some problems regarding the 13.x features of GeClipMap(). could someone enlighten me on the useage of GetFont()and SetFont() in python ?
myGeClipMap.SetFont( None, 0.0)
SystemError: source\pymodules\c4d\PyBaseContainer\PyBaseContainer.cpp:1095: bad argument to internal function
bc = c4d.BaseContainer() myGeClipMap.GetFont(bc)
TypeError: GetFont() takes no arguments (1 given)
myGeClipMap.GetFont()
SystemError: .\source\embedding\interface\i_getargs\i_getargs.cpp:1440: bad argument to internal function
i also have no idea how we are supposed to create the font data bc for SetFont(), as the font helper functions of GeClipMap do not exist in python.
edit : eh, i am on R13.058
On 09/05/2012 at 08:14, xxxxxxxx wrote:
bump,
can no one answer this question ? is my question not in an understandable form ? i assume this is a bigger bug in the python sdk ?
On 09/05/2012 at 08:47, xxxxxxxx wrote:
Hei Ferdinand!
I don't have much time to explain, but I think you're experienced enough to figure it out with this example:
import c4d data = c4d.gui.FontDialog() for k, v in data: print k, v font = c4d.FontData() font.SetFont(font)
Cheers, Niklas
On 23/05/2012 at 00:50, xxxxxxxx wrote:
hey nikklas,
thanks for your answer, i have red it earlier, but i discovered a rather unpleasent way to get of your bike while biking, so i was kind of busy with myself. will check this out soon.