Migrating from v7.3
-
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_NAMEwhile( 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_RESTRICTIONwhile( 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 -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/07/2004 at 09:19, xxxxxxxx wrote:
I guess I'll try to propose my own guesses while I wait...
1. if( ptag->GetPluginID() == GTAG_PLUGID )
becomes
if( ptag->GetType() == GTAG_PLUGID ) ?
2. String selName = stag->GetData().GetString(POLYSELECTIONTAG_NAME);
becomes
String selName = stag->GetName(); ?
3. I think this one may be working as-is...
4. ?
5. ? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/07/2004 at 09:55, xxxxxxxx wrote:
I finally got everything to compile and my assumptions above seem to be correct.
I think my last remaining issue has to do with displaying bitmaps in a dialog userarea, but I'll start a new thread for that.