Hello
I want to get strings from specific property(CollectionProperty with specific name) in C code.
I found that function in rna_access.h
char *RNA_property_string_get_alloc(PointerRNA *ptr, PropertyRNA *prop, char *fixedbuf, int fixedlen, int *r_len)
which is called from native python code i want to go around this and use this func to get string from my specific property.
That extracts string from my CollectionProperty but i need to pass to him
PointerRNA *ptr, PropertyRNA *prop
are for that i need to create manual and how? is there any other way?
My problem is how to read CollectionProperty in my Custom Space in C ofc(just with property name?).
I not looking for detail explain i just need reference
If you know where in source exist that usage please refer me this will be very usefull
Hello, I see that no one answers than I guess the question a lot of vague so I’ll repeat it but with a more specific case where I’m stuck .
I copied bf_editor_space_outliner and made some small changes such as changing the name from the outliner in projoutliner (project outliner ) and everything works in a blender appears a new space that can be used and is identical to the Outliner.
Now I will give it to him my information and I think to do it in
projoutliner_tree.c / projoutliner_build_tree ( Main * mainvar , Scene * scene , SpaceOops * soops )
for start trying to get StringProperty(later ColectionProperty or some new ‘TreeProperty’ maybe) defined in Python with
bpy.types.Scene.ExampleString bpy.props.StringProperty = ()
bpy.types.Scene.ExampleString = ' This Is String For Exampleee !!'
I made this here is code if someone stuck as i. The biggest problem for me was how to get to first pointer but that can be done from Scene or Context and sure have more…