Autoinsert Ospline.res ... sigh



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/02/2006 at 08:49, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   9.5 
    Platform:   Windows  ; Mac  ;  Mac OSX  ; 
    Language(s) :     C++  ;

    ---------
    Dear developpers,
    when I build an object with:
           BaseObject *op = SplineObject::Alloc(2, Tlinear);
           if (!op) return FALSE;
           doc->InsertObject(op, NULL, NULL, TRUE);
    a new doc (from Ospline.res) will create instead MyInitialDoc ... now:
    is it possible to avoid this ? If no, how is it possible to hide or add any parameter in "this" new Ospline doc ?
    PS. The plugin workin in ToolData class.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 07/02/2006 at 14:25, xxxxxxxx wrote:

    I'm afraid I don't understand what you mean. Could you clarify the problem?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 08/02/2006 at 03:29, xxxxxxxx wrote:

    Welcome again Mikael :)
    My Plugin works for create a Spline with ToolData class and has need to adding parameters/items or hiding others (Containers/Description (?) in doc).
    To the loaded initialization my "personalized Spline" goes correctly in doc, but... when I create other objects (you see over), in automatic way, overwriting myPersContainers doc.  And also this goes well... I have understood.
    The problem is that, it seems, I do not have no possibility to add or to hide some my parameters/items inside this new doc (arrived from Ospline.res).
    Bool XXXObject::GetDDescription(...) works only when plugin startup ... and DESC_HIDE command so ...
    I hope that I explain you clean.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/02/2006 at 01:33, xxxxxxxx wrote:

    uhm ... ?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/02/2006 at 07:35, xxxxxxxx wrote:

    Actually, GetDDescription() is called continuously - whenever you click on the object/tag/etc. and the A.M. for it is displayed or the A.M. elements are changed, it is called.

    Is this the A.M. for the Spline or the ToolData?

    Could you provide more information and maybe the code of your GetDDescription()?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/02/2006 at 08:51, xxxxxxxx wrote:

    Indeed there seems to be a problem with Descriptions for tool plugins. I tried to use the approaches that were presented here to hide some of the controls in a tool plugin, basically setting the HIDE flag to true during the execution of the GetDDescription function. But it simply did nothing. I have tried exactly the same on an object plugin and it works flawlessly.

    ..
    btw...
    I think he wants to create multiple different types of objects by a toolplugin and insert these objects in a document. The toolplugin's description should dynamically change to show controls that correspond to the currently selected object type. The problem obviously is that he can't change the description once it has been initialized when the tool is first used.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/02/2006 at 09:21, xxxxxxxx wrote:

    Ah, I see. Was afraid of this - haven't had experience with ToolPlugins yet (but will soon enough).

    Is there a possibility of using GetDEnabling() and some form of flag to disable unwanted descriptions? Or, as horrid as it seems, use of a set of 'groups' (tabs) in the A.M. of the ToolPlugin for different object types?

    I definitely sympathize with you concerning the limited access to A.M. features and configurability (as you may have seen from other posts of mine). :)



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 14/02/2006 at 04:29, xxxxxxxx wrote:

    Thx Michael (& kuro too).
    You catch my problem ("I want to create multiple different types of objects by a toolplugin and insert these objects in a document. The toolplugin's description should dynamically change to show controls that correspond to the currently selected object type.
    The problem is that I can't change the description once it has been initialized when the tool is first used").
    Now... I also understand that any solution don't exists... sigh.
    I hope that Maxon developpers thinks for resolve (or implemented more possibilities) in ToolData plugin.
    In this moment, I am trying to resolve this problem, inserting a control DescriptionCustomGui like in ActiveObject.ccp example.
    Greetings.


Log in to reply