Navigation

    • Register
    • Login
    • Search
    • Categories
    1. Home
    2. Tags
    3. solved
    Log in to post

    • U

      SOLVED Set Use As Render View
      Cinema 4D Development • python classic api solved • • unti  

      3
      0
      Votes
      3
      Posts
      34
      Views

      U

      Thank you Manuel, that works perfectly. I can use CallCommand() but I don't want to as it will always call c4d.EventAdd() and as I can't specify which bd to set as the renderview. I tend to not use CallCommand() in a plugin as it is only be able to be called in the main thread (which would be fine in this case) and as it seems to 'simulate' user interaction.
    • U

      SOLVED Disable default Right-Click Menu
      Cinema 4D Development • python r20 r19 r21 solved • • unti  

      9
      0
      Votes
      9
      Posts
      95
      Views

      U

      @m_adam Thanks! Thats a perfect explanation that solves many of my issues - even in some of my other Plugins. I am sorry, I did in fact refer to c4d freezing when I said crashing. Sorry for the confusion.
    • SOLVED VolumeObject ReadObject and WriteObject no supported?
      Cinema 4D Development • r20 c++ solved • • kbar  

      3
      0
      Votes
      3
      Posts
      54
      Views

      Thanks Riccardo.
    • SOLVED Dirty State with Python Generator
      Cinema 4D Development • python sdk solved • • orestiskon  

      5
      1
      Votes
      5
      Posts
      50
      Views

      Thanks a lot for the explanation! I replaced the plugin id with a user data and it seems to work ok. Still trying to figure out the matrix on the other thread though. Here is the adapted code: def main(): ID_PYGEN_DIRTY_CACHE = op[c4d.ID_USERDATA,3] linked_object = op[c4d.ID_USERDATA, 2] # Get the last cached dirty count and the current dirty count. lst_dcount = ID_PYGEN_DIRTY_CACHE cur_dcount = linked_object.GetDirty(c4d.DIRTYFLAGS_ALL) if linked_object is None: return c4d.BaseList2D(c4d.Onull) # Return the linked object if its dirty count exceeds our cached dirty # count or there is no cached dirty count. if lst_dcount is None or lst_dcount < cur_dcount or op.GetCache() is None: # Cache the current dirty count. op[c4d.ID_USERDATA,3] = cur_dcount clone = linked_object.GetClone(c4d.COPYFLAGS_NO_HIERARCHY) clone.SetMg(c4d.Matrix()) print "Built cache" return clone # Otherwise return the cache. else: print "Returned cache" return op.GetCache() And the file: python_dirtyState_0001.c4d
    • M

      SOLVED Attribute Manager not updating with Tag Selection
      Cinema 4D Development • python issue solved • • Motion4D  

      5
      0
      Votes
      5
      Posts
      64
      Views

      M

      @C4DS Thank your reply! I had to come back to this because I had problems with switching back to object context and this solved that!
    • M

      SOLVED Create object with custom icon in Python
      Cinema 4D Development • python solved • • mdr74  

      3
      0
      Votes
      3
      Posts
      50
      Views

      M

      hello, good you found out how to resolve your issue, for you next thread, please mark your thread as a question as follow Q&A New Functionality. Cheers Manuel
    • SOLVED Inserting an Image Shader into a Dynamic Slot
      Cinema 4D Development • python r20 api solved • • blastframe  

      6
      0
      Votes
      6
      Posts
      84
      Views

      S

      @blastframe said in Inserting an Image Shader into a Dynamic Slot: This is the C++ code of the shader: Hello, just to make things clear: the above snippet is NOT the "C++ code of the shader". It is the resource parameter description, that defines the parameter types and layout. See Description Resource. best wishes, Sebastian
    • M

      SOLVED Questions about Bake Texture tag & Python
      Cinema 4D Development • python solved • • mfersaoui  

      11
      0
      Votes
      11
      Posts
      144
      Views

      M

      Hi, Thank you very much @zipit and have a good day.
    • I

      SOLVED [python] SetFont not working
      Cinema 4D Development • python r20 sdk issue api solved • • iluxa7k  

      6
      0
      Votes
      6
      Posts
      63
      Views

      I

      @m_adam said in [python] SetFont not working: In which version are you? The code I posted is working nicely in R20.059. 20.059. Before i tried any methods, that's my fail. Not work for me. From new start of c4d. - it works
    • Getting the State of Modifier Keys (ctrl/cmd, shift, alt)
      General Programming & Plugin Discussions • python solved • • dskeithbuck  

      5
      1
      Votes
      5
      Posts
      80
      Views

      M

      I'm not sure it's a bad habit or what's the difference. There's maybe type conversion, i don't know. Or maybe with the code optimization there's no difference at the end. I just wanted to add my 2 cents to have bool and not value xD Cheers Manuel
    • S

      SOLVED Getting Tag by name
      Cinema 4D Development • python r20 solved • • sheilan  

      4
      0
      Votes
      4
      Posts
      170
      Views

      S

      @m_magalhaes Oh yeah I forgot to add the tags. I'm using Python by the way. You can count this post as solved.
    • M

      SOLVED How to updata message when i save data in NodeData::Message
      Cinema 4D Development • r20 c++ solved • • mike  

      4
      0
      Votes
      4
      Posts
      200
      Views

      M

      @r_gigante Oh!Thank you!The plug-in ID is the reason for the problem,use another shorter number and everything is ok. Thank your for your help!
    • M

      SOLVED How to keep data in tag plugin even if restart Cinema 4D
      Cinema 4D Development • python solved • • mike  

      7
      0
      Votes
      7
      Posts
      316
      Views

      M

      Please consider to sets the topic as solved if it's the case. Cheers, Maxime. EDIT: I've done it, but feel free to set it back to Open if you feel the need to ask more questions.
    • M

      SOLVED access sound attributes using python API
      Cinema 4D Development • python r20 api solved • • mafster  

      7
      0
      Votes
      7
      Posts
      286
      Views

      M

      Hey @mrittman, i cant find the id names in documentation but i think CID_SOUND_START would be the timecode of when the audio starts (notice you are assigning a BaseTime object to it) CID_SOUND_NAME which i'm using is the audio file path. My application is taking the audio file path and the image sequence output (as defined by the render output settings) and combining them via a subprocess using ffmpeg. If there was a way i could do it straight through c4d id prefer that! Mainly cos ffmpeg is a mission! especially when you need to shift/delay audio and what not.
    • SOLVED Updating old code: Vector > LONG
      Cinema 4D Development • c++ sdk classic api solved • • fwilleke80  

      4
      0
      Votes
      4
      Posts
      180
      Views

      Yeah, definitely. When porting old code that I didn't write to new C4D releases, I always add lots of comments, so people who come after me won't have the same problems ;-)
    • SOLVED Source Processor: Platform-dependent function signatures
      Cinema 4D Development • r20 c++ solved • • fwilleke80  

      5
      0
      Votes
      5
      Posts
      226
      Views

      It builds, and the source processor does not complain. Thank you!
    • K

      SOLVED CUSTOMGUI_TREEVIEW in GetDDescription()
      Cinema 4D Development • r20 c++ classic api solved • • Kuroyume0161  

      4
      0
      Votes
      4
      Posts
      305
      Views

      K

      Sebastian, Added tags. Not really a question but a request. I thought that I had read about people adding a TreeView to the AM using GetDDescription() but maybe it wasn't as well fleshed out as they (or I) suspected. I will look into the custom data type and GUI for it. Please mark as Solved. Thanks! Robert
    • A

      SOLVED Run Plugin Last
      Cinema 4D Development • python r19 api solved • • AndreAnjos  

      3
      0
      Votes
      3
      Posts
      249
      Views

      A

      @m_adam Hi Maxime, It works like a treat! I've ended up changing the UI to a treeView and it's still working great. Thank you very much! Andre
    • SOLVED MCOMMAND_JOIN issue
      Cinema 4D Development • python issue solved • • merkvilson  

      10
      0
      Votes
      10
      Posts
      618
      Views

      Hi, thanks for pointing out this issue. We'll see if can get a fix for that (not all tags visible, if zooming in with browser). In the end Maxime wasn't referring to tags at all. Instead he was talking about the Q&A Function we have in this forum. I took the freedom to mark this thread as solved (see this shiny green stamp next to the headline ). Cheers, Andreas
    • SOLVED Quicktab Radio Buttons
      Cinema 4D Development • issue solved • • merkvilson  

      2
      0
      Votes
      2
      Posts
      212
      Views

      Seems like this is a way to go. LONG TEST_BUTTONS {CUSTOMGUI QUICKTABRADIO; CYCLE{ TEST_1; TEST_2; TEST_3; }FIT_H;} Previously my mistake was that I was writing CUSTOMGUI QUICKTABRADIOBUTTON instead of CUSTOMGUI QUICKTABRADIO