Message 1 of 3
GetUserPropBool - string - float etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've made a custom helper object.
the object name is : "LRSettings001"
I'm able to check if a userprop exists by using this:
I want to get the bool property from my object, but I do not understand how the command is used properly..
I've tried with:
but this returns:
same with float\string etc.
Please note that I've been coding for some years, it's just that I'm new to c++ (I'm a c# coder).
But I'm spending my free time learning c++ and help out with coding the exporter for Luxrender.
any help is greatly appreciated.
thanks in advance.
the object name is : "LRSettings001"
I'm able to check if a userprop exists by using this:
INode* node;
if (ip->GetINodeByName("LRSettings001"))
node = ip->GetINodeByName("LRSettings001")
if (node->UserPropExists("ExportEXR"))
{
node->GetUserPropBool("ExportEXR",*What GOES HERE?*))
}
I want to get the bool property from my object, but I do not understand how the command is used properly..
I've tried with:
if (node->GetUserPropBool("ExportEXR"))
{
//my code goes here if property is true
}
but this returns:
Error 1 error C2660: 'INode::GetUserPropBool' : function does not take 1 arguments
same with float\string etc.
Please note that I've been coding for some years, it's just that I'm new to c++ (I'm a c# coder).
But I'm spending my free time learning c++ and help out with coding the exporter for Luxrender.
any help is greatly appreciated.
thanks in advance.