Page 2 of 2

Re: Getting a project's materials

Unread postPosted: Fri Jul 19, 2019 8:45 am
by gerdhofer
Amazing! Thanks!

Re: Getting a project's materials

Unread postPosted: Sat Jul 20, 2019 7:11 pm
by gerdhofer
When I collect a material‘s data types I get things like TYPE_DOUBLE, TYPE_STRING, etc. These types are then used to read out the attribute values with get_double(), get_string(), ... The only types where I couldn't find corresponding get commands are TYPE_ACTION, and TYPE_REFERENCE. Could you please tell me which get methods I have to use here, because get_reference() and get_action() don't work.

Thanks again,
Gerd

Re: Getting a project's materials

Unread postPosted: Mon Jul 22, 2019 9:29 am
by dcourtois
Hi,

Here is the relevent part in the documentation: https://clarissewiki.com/4.0/sdk/class_ ... 964b8c668a
I know it's far from perfect, but TYPE_REFERENCE says "External OfObject input connection." Did you try a `get_object` call ?

As for the TYPE_ACTION, it says there is no value so maybe this is why there's no associated getter. I'm not sure how this type is used (never used it myself)

Re: Getting a project's materials

Unread postPosted: Mon Jul 22, 2019 9:59 am
by gerdhofer
"get_object" makes perfect sense here, of course, and I'll give it a go. As for the TYPE_ACTION method I think it's not absolutely relevant in my case and I'll simply skip it then. Just want to check back to be be sure. Thanks.