Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. joel_motion
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by joel_motion

    • joel_motionJ

      Script to change Navigation Camera Mode (help)

      Cinema 4D SDK
      • python 2024 windows • • joel_motion
      5
      0
      Votes
      5
      Posts
      937
      Views

      joel_motionJ

      @i_mazlov

      Thank you very much for your response!

      I am not sure how long it would have taken me to figure out the "prefsPlugin: c4d.BasePlugin =... " part without your help.

      This is the code I wrote, which works exactly how I wanted it to (and now I have the script mapped to a hotkey).

      import c4d def main(): prefsPlugin: c4d.BasePlugin = c4d.plugins.FindPlugin(c4d.PREFS_NAVIGATION, c4d.PLUGINTYPE_PREFS) navigationValue: int = prefsPlugin[c4d.PREF_NAVIGATION_CAMERA] if navigationValue == 3: prefsPlugin[c4d.PREF_NAVIGATION_CAMERA] = c4d.PREF_NAVIGATION_CAMERA_CAM else: prefsPlugin[c4d.PREF_NAVIGATION_CAMERA] = c4d.PREF_NAVIGATION_CAMERA_CUR if __name__=='__main__': main()

      Thanks again!

    • joel_motionJ

      Need help fixing export to GLTF script

      General Talk
      • • • joel_motion
      3
      0
      Votes
      3
      Posts
      892
      Views

      i_mazlovI

      Hello @joel_motion,

      Welcome to the Plugin Café forum and the Cinema 4D development community, it is great to have you with us!

      Getting Started

      Before creating your next postings, we would recommend making yourself accustomed with our Forum and Support Guidelines, as they line out details about the Maxon SDK Group support procedures. Of special importance are:

      Support Procedures: Scope of Support: Lines out the things we will do and what we will not do. Support Procedures: Confidential Data: Most questions should be accompanied by code but code cannot always be shared publicly. This section explains how to share code confidentially with Maxon. Forum Structure and Features: Lines out how the forum works. Structure of a Question: Lines out how to ask a good technical question. It is not mandatory to follow this exactly, but you should follow the idea of keeping things short and mentioning your primary question in a clear manner. About your First Question

      Support for redshift materials on gltf export first appeared with the 2023.2 release. That version also included numerous gltf exporter stability improvements.

      Please note, that debugging the code is out of scope in this forum. You are very welcome to ask specific questions with well-defined scope.

      In general your code seems reasonable. The approach with cloning objects onto a new document is the one I would suggest anyways. However, one should be careful with the dependencies that objects in the subtree might loose during cloning. AliasTrans helps to overcome such side effects to some extent.

      Cheers,
      Ilia