Notifications
Clear all

[Closed] 3ds Max SDK – Atmospheric Effect

Using the 3ds Max sdk how can i collect all the atmospheric effects?
because i essentially want to loop through all the atmospheric effects and get their names using the c++ sdk.

virtual MSTR 	GetName ()
virtual BOOL 	Active (TimeValue t)
2 Replies
 lo1

untested


std::vector<MSTR> names;
Interface* ip = GetCOREInterface();
for (int i = 0; i < ip->NumAtmospheric(); i++)
{
    names.push_back(ip->GetAtmospheric(i)->GetName());
}

This leads me in the right direction.
Thank you Rotem.