@s_bach Hi Sebastian,
How exactly can I reject the file selected by the user?
This is what I tried, I can see the message dialog when the user selects an unexpected file, but the value is always set, independent if I return true, false, or unset the flags.
Bool AnimationModifier::SetDParameter( GeListNode* node, const DescID& id, const GeData& t_data, DESCFLAGS_SET& flags )
{
auto paramId = id[0].id;
if ( paramId == anm_FilePathAttribute )
{
auto suffix = t_data.GetFilename().GetSuffix().ToLower();
if ( suffix != "abc"_s )
{
MessageDialog( "Select an Alembic file with extension .abc"_s );
//flags &= ~DESCFLAGS_SET_PARAM_SET;
//return true;
return false;
}
}
return SUPER::SetDParameter( node, id, t_data, flags );
}