THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/07/2004 at 14:51, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;
---------
It looks like I hae to port my plugin to v8.5 for it to function and am running into various things that are now missing and need to be translated. Any help with the following would be appreciated.
1. GetPluginID()
while( ptag = (PluginTag* )(op->GetTag(Tplugin, ptagi++)) )
{
if( ptag->GetPluginID() == GTAG_PLUGID )
...
...I need to know how to get a PluginTag's ID. This function is no longer available in v8.5 of the SDk.
2. POLYSELECTIONTAG_NAME
while( stag = (SelectionTag* )(op->GetTag(Tpolygonselection, stagi++)) )
{
String selName = stag->GetData().GetString(POLYSELECTIONTAG_NAME);
...
...I need to know how to get the 'name' of a SelectionTag.
3. TEXTURETAG_RESTRICTION
while( ttag = (TextureTag* )(op->GetTag(Ttexture, ttagi++)) )
{
// see if there's a restricted selection associated with this texture...
String restr = ttag->GetData().GetString(TEXTURETAG_RESTRICTION);
...
...I need to get the 'restrict to selection' string, if it exists within a TextureTag.
4. BASECHANNEL_COLOR / BASECHANNEL_BRIGHTNESS
...was changed to "BASECHANNEL_COLOR_EX" and "BASECHANNEL_BRIGHTNESS_EX". Which leads me to believe that something about it's usage changed as well (note that "BASECHANNEL_TEXTURE" etc did NOT change), though I don't see anything obvious. Can I just change my defines?
5. Tpolyselection -> Tpolygonselection
...I assume this name change is purely cosmetic (?).
I guess that's all for now ;)
Thanks,
- Keith