prevent making object generator editable
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/02/2007 at 16:53, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
Hi,I'm looking for some demo restrictions for my object generator plugin. the plugin generates a polygon object from splines.
I found out, that I can prevent rendering by reacting to the MSG_MULTI_RENDERNOTIFICATION message. But more important is it, to prevent making a "real" polygon object using "make editable" or "current state to object". Unfortunately there isn't any message incoming before C4D makes the conversion.
Now I found out, that the thread pointer I'm getting from the HierarchyHelp pointer (hh->GetThread()) is always NULL, when executing one of the conversion.
What do you think, is it safe to rely on this behaviour?
Do you have another idea doing the task?Thanks in advance,
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2007 at 05:55, xxxxxxxx wrote:
Hmm, try to check what Flag is set in hh->GetVFlags(). I could imagine that the object will have VFLAG_POLYGONAL set when converting. Just a guess.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2007 at 06:11, xxxxxxxx wrote:
Hi Samir,
yes, VFLAG_ISOPARM and VFLAG_POLYGONAL are set. I tried to erase all flags with hh->AddVFlags(0). Although this function is named "Add..." the sdk says "Change the virtual object flags". But the call has no effect. I call the function in GetVirtualObjects(). Maybe too late?
Where can I manipulate these flags? Is it possible at all?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2007 at 06:19, xxxxxxxx wrote:
I don´t think you need to change the flags at all. I just thought it would be helpful in checking when to return something in GetVirtualObjects or not. But now that I think about it, I don´t think it´s safe to use these flags.
Sorry, don´t know anything else spontaneously.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/02/2007 at 06:45, xxxxxxxx wrote:
It seems, that the *baseThread == NULL check works fine. Even when trying to export the document as 3DS or putting it into e.g. a hypernurbs and convert this, the method works! I'll keep an eye on it and test it on different platforms and c4d versions.