Object Enabled?



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

    On 23/11/2005 at 17:53, xxxxxxxx wrote:

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

    ---------
          I thought this would be very easy, but I haven't been able to get the value of the enable checkbox in the AM for generator objects and expression tags. Is there some trick to getting certain AM values -- I can get values like radius for a sphere, but not the enable bool. I looked for it in the object's contatiner, with ID_BASEOBJECT_GENERATOR_FLAG, but is is always 0. Perhaps it is somewhere else?

    Thanks in advance.

    Aaron M.



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

    On 26/11/2005 at 18:36, xxxxxxxx wrote:

    Possibly this is not quite as easy as I had once hoped? There must be some way to access this. Otherwise, then what's the point of including Obase in the description? Nobody knows?... hmm. Fascinating.



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

    On 26/11/2005 at 23:37, xxxxxxxx wrote:

    BaseObject::GetDeformMode() and SetDeformMode()



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

    On 27/11/2005 at 00:06, xxxxxxxx wrote:

    Yep, as Robert said thats what you need. Also, not all objects have data in their BaseContainer, some have internal data you can only fetch using GetParameter. GetParameter will fetch any value from the description, to use it just do:

        
        
          
        GeData t_data;  
        if (!bl->GetParameter(DescID(id),t_data,0)) return def;  
        return t_data.GetLong();  
        
    

    where 'bl' is your object (BaseList2D) and 'id' is the ID for the data you want from the objects description.



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

    On 27/11/2005 at 23:01, xxxxxxxx wrote:

    Ah. I have seen a little of those fuctions, but didn't realize that that was what they did. (hmm. GetParameter(). What an idea!).
    Thankyou both.


Log in to reply