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
    • Recent
    • Tags
    • Users
    • Login

    How to use a variable that is defined later?

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 213 Views
    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 Offline
      Helper
      last edited by

      On 08/12/2015 at 09:36, xxxxxxxx wrote:

      Hey all,

      I have a dialog with a user area and a slider (and some other things that don't matter ^^ ). In the user area I am projecting a renderd picture and I want that the slider is like a quality slider (It should change the size of the image projected in the user area).

      My problem now, is that the picture for the user area is rendered and drawn in an seperate class which is the first one in my file, but the slider is in the actual dialog class and I don't know, how I get its data in my render class.

      I hope that someone can help me 😄

      greetings, 
      neon

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

        On 09/12/2015 at 02:24, xxxxxxxx wrote:

        Hi,

        You can first define a function named SetQuality(quality) for instance in your render class.
        Then the render class should be used in the dialog or user area class so you can call renderclass.SetQuality() to pass the quality value from the slider in the dialog.

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