Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    GetZoom

    SDK Help
    0
    2
    707
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

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

      On 11/11/2002 at 08:53, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:      
      Language(s) :     C++  ;

      ---------
      Why does gui->GetZoom( *Node, &Zoom ) return zero?
      I need it to scale user area appropriately inside the nodes.
      darf

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

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

        On 11/11/2002 at 09:51, xxxxxxxx wrote:

        Quote: Originally posted by darf on 11  November 2002
        >
        > * * *
        >
        > Why does gui->GetZoom( *Node, &Zoom ) return zero?
        Not entirely accurate; it just multiplies your passed value by 1.0... 😉
        > I need it to scale user area appropriately inside the nodes.
        Jokes aside there are two important things to know about GetZoom:
        1. The node you pass must be the group node, i.e. not the node itself. So do node->GetUp() until you find a node->IsGroupNode(). (Normally just one step up.)
        2. The return value isn't the zoom but the passed value times zoom. So to get the zoom you must pass 1.0 to the function, not 0.0. (The zoom of non-group nodes is 1.0.)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post