Navigation

    • Register
    • Login
    • Search
    1. Home
    2. Sturdy_Penguin
    3. Posts
    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by Sturdy_Penguin

    RE: Querying and Storing Object Information

    @ferdinand Helloooo
    Thanks for all this great info! This is definitely much more convoluted than I anticipated. I appreciate the example you gave and your description of how I'd go about getting a close approximation. I do think it might be too difficult, especially because of Cinema's procedural objects.

    I was more so hoping that the "Object Information" menu was a callable function that I could simply ask to query the memory value for, then loop through every object and save to a log. I come from a background of Python for Maya so in my head I was thinking it'd be something like: object_size = maya.pymel.objectInfo ( object_name, query=True, size=True) but of course each software has it's own nature.

    My next thought (though probably entirely impossible) was to somehow execute "Object Information" for every object, somehow store the GUI dialog text as a string, close the dialog and save that information out.

    I'll probably look for a different starting point. Thanks again ♪(´▽`)

    posted in Cinema 4D SDK •
    RE: Querying and Storing Object Information

    @m_magalhaes
    Apologies if I posted a bit haphazardly. Thanks for reorganizing where the post should be!

    I'm at day 3 of using Python in Cinema so I just need to get used to it all. I'll look into GetPointCount and GetPolygonCount.

    Essentially my friend wanted a tool that would organize what objects took the most memory and organized them from biggest to smallest in a log. I looked into VariableTag.GetDataCount and VariableTag.GetDataSize from what you described in the other post and those seem to be useful as well (I think).

    Thanks again!

    posted in Cinema 4D SDK •
    RE: Querying and Storing Object Information

    Oh ok interesing. Thanks for the link! That explanation they gave is shotty but I can try figuring it out. At least I know there isn't a direct method to call on.

    Thanks again.

    posted in Cinema 4D SDK •
    Querying and Storing Object Information

    Hello.

    I'm really new to using Cinema and Python together.

    In the object manager, you can get an object's information, such as how many points, polygons and memory it uses.
    I see there is a CallCommand to bring up the specific window with this information but I'd like it to be stored for later use.
    Looking though the documentation I see it is possible to query an object's points and polygons but I can't find how to do this for an object's memory.

    Would anyone know what that might be or what buzzwords would help me find that? I've tried "allocation", "memory", "object information" and things of the like. Thank you for any help!

    posted in Cinema 4D SDK •