THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 22/12/2012 at 16:10, xxxxxxxx wrote:
Originally posted by xxxxxxxx
import c4d
from c4d import plugins
def main() :
color = plugins.FindPlugin(465001640, c4d.PLUGINTYPE_PREFS) #The Editor Colors prefs heading
print color
#Now you have to find the ID's for the colors..Background, Film format, etc..I don't know where they are
if __name__=='__main__':
main()
I looked around for the color ID's but I couldn't find them.
They are buried in the C4D file system somewhere. But I don't know where yet.
I'd like to know where they are too.
#Edit- I found them in ge_prepass.h. But they don't seem to work. No idea why.
-ScottA
GeListNode.GetData() returns for the plugin :
----------------------------------------------------------------------------------------------------
<c4d.BaseContainer object at 0x0000000012169D50>
> id: 700, val: 10000050
> id: 701, val: 0
but i found the interface ids (ge_prepass contains the viewport ids, plus i am not sure if that
are actually ids, looks more like an enum for internal use).
the interface color ids are defined at \resource\_api\c4d_colors.h quite obvious isn't it ^^
however these ids doesn't match the ids in the worldcontainer. :joy:
edit:
pretty ugly, but it works, you can use alle the ids listed in c4d_colors.h with GetColorRGB()
colorContainer = gui.GeUserArea()
myColor = colorContainer.GetColorRGB(c4d.COLOR_TEXT_DISABLED)