• Use the tab name and open the that window?

    python
    3
    1
    0 Votes
    3 Posts
    940 Views
    ymoonY
    @ferdinand There is no command to invoke the viewport window, so I was looking for an alternative. I will tagging the version in the next post. (R2023) Thank You.
  • Using recent VS to make older builds

    5
    0 Votes
    5 Posts
    879 Views
    WickedPW
    Thanks Maxime. And apologies for the delay - I didn't see the response. WP.
  • Python-Generated Splines are not recognized by Cloner Object

    python 2023
    3
    0 Votes
    3 Posts
    699 Views
    K
    hi @i_mazlov , I understand that it is not supported, so I will use Scene Nodes to generate the spline this time. No other questions, thank you very much.
  • Python Xpresso node detect Userdata button press message

    r20 python project tool
    5
    0 Votes
    5 Posts
    1k Views
    D
    @ferdinand Thanks for your comprehensive explanation. I really appreciate that. Cheers
  • Why are my port definitions duplicated in the Attribute Manager?

    Moved c++ 2023
    7
    4
    0 Votes
    7 Posts
    2k Views
    S
    Hi @ferdinand, No problem, I got there in the end and it's actually not too tricky once you know how it's supposed to work. I'll have a go now at a material node, there are more examples of those so hopefully it'll be straightforward. I'll be sure to be back if it isn't! In the meantime I've uploaded a detailed explanation of all the steps needed to build this kind of node to my site at https://www.microbion.co.uk/html/create_nodes_corenode1.htm so if anyone wants to see how it was done, it's all there. Hopefully it's fairly accurate; all I can say is that this is what I did and it worked for me Thanks again for your help, Cheers, Steve
  • 0 Votes
    4 Posts
    1k Views
    T
    Hi @ferdinand, your links really helped me a lot, and I managed to write a script that starts a render and sends the rendered image to a web service. Can the SDK grab the live preview image from the redshift IPR? I assume not looking at the documentation: https://developers.maxon.net/docs/py/2023_2/search.html?q=redshift&check_keywords=yes&area=default
  • DrawView update ISSUE

    python
    7
    0 Votes
    7 Posts
    1k Views
    i_mazlovI
    Hi @mdk7b2, Glad to hear and thank you for sharing your solution! Good luck and let me know if you have any further questions. Cheers, Ilia
  • Active Controls

    sdk r20 c++
    5
    1
    0 Votes
    5 Posts
    1k Views
    J
    Thanks for the response. That's what I figured would be the case.
  • How to access Volume Data?

    3
    0 Votes
    3 Posts
    1k Views
    C
    Hello @ferdinand , First of all thanks a lot for your answer, it does exactly what I was trying to achieve, print the names of the volume grids stored on a Volume Loader with Python, I just added the GetName() on the last loop for that. Sorry about the rule violation, I thought it was a good idea to have the C++ and the Python code equivalent at the same place because of the same reason that you mentioned, if someone was looking for doing this they could find both versions at the same place, also as you mentioned, sometimes it can be tricky to decide when something is on-topic or not. Here is the updated code with the grid name: """Demonstrates accessing volume caches. Volumes are composed differently based on part of application using them but this script demonstrates how most of them can be accessed. """ import c4d doc: c4d.documents.BaseDocument # The active document op: c4d.BaseObject | None # The active object, None if unselected def main() -> None: """ """ if not op: return # Volume output is contained in the caches of objects. In this case an Ovolume is directly # the cache content of some tangible scene object. cache: c4d.BaseObject = op.GetCache() if cache.CheckType(c4d.Ovolume): print (f"{cache = }") # Sometimes, e.g., Pyro, volumes are loaded from VDB files on disk, in that case the loading # tangible scene object usually holds a Ovolumeloader as the first child of its cache. if cache.CheckType(c4d.Ovolumeloader): cache = cache.GetCache() # Many things contain not only a singular volume but sets of them. Which then hold their content # as children. Stuff can get more complex as always the case with caches in Cinema 4D, but the # cache structure of a Pyro Output object loading data from disk could look like this: # # PyroOutput # Cache: Ovolumeloader # Cache: Ovolumeset # Child: Ovolume (Color) # Child: Ovolume (Density) # ... if cache.CheckType(c4d.Ovolumeset): cache = cache.GetCache() for item in cache.GetChildren(): print (f"{item = }") print ("grid name = " + item.GetName()) if __name__ == '__main__': main()
  • Annotation tag without bubble

    sdk
    5
    0 Votes
    5 Posts
    970 Views
    S
    @ferdinand many thanks, I think that the topic is closed! You're amazing!
  • access the layers in the shader layer

    python
    10
    0 Votes
    10 Posts
    2k Views
    JH23J
    Hi @i_mazlov , This solves my problem, for now I don't think I have another question, and I could consider my problem solved, thanks. cheers, James H.
  • ToolData.MouseInput() how to get right mouse click?

    python
    3
    0 Votes
    3 Posts
    732 Views
    J
    @i_mazlov Hi, thanks for letting me know that. cheers~
  • Creating object in CommandData does not update Object Manager

    c++
    2
    2
    0 Votes
    2 Posts
    576 Views
    M
    Hi sadly this is a known issue, see EventAdd is not working. Cheers, Maxime.
  • python script, is "add to hud" possible to add to my python script?

    r21 python
    3
    0 Votes
    3 Posts
    831 Views
    T
    would love to see that being added. the HUD is amazing for internal tooling
  • Not working FieldLists Keyframes and Tracks

    python r23
    3
    1
    0 Votes
    3 Posts
    649 Views
    mikeudinM
    @ferdinand Thank you! That was TranslateDescID issue!
  • How to understand GraphModelInterface.AddChild().

    2023 maxon api windows python
    11
    2
    0 Votes
    11 Posts
    2k Views
    DunhouD
    Hi @m_adam , I have ask what are main functions in redshift do in redshift forum, but get no reply for week. and the help(redshift) also give me an ambiguous result. But anyway, I have something here, I will update it and publish when I have free times.
  • Retrieve GvNodeMaster from Xpresso Editor/Manager

    python 2023
    3
    0 Votes
    3 Posts
    727 Views
    T
    Hello @ferdinand ! Thank you for such a fast reply! Looks like c4d.modules.graphview.GetMaster(0) does the trick, I was confused at first about "id" in the arguments, but looks like 0 really gives the current active GvNodeMaster! Cheers, Max.
  • Updating a spline

    Moved
    3
    0 Votes
    3 Posts
    753 Views
    KantroninK
    @ferdinand I made this function which works fine: def spline_update(doc,spline,tabNewPoint): tabPoint = spline.GetAllPoints() dim = len(tabNewPoint) if len(tabPoint) != dim: spline.ResizeObject(dim) for i in range(0,dim): point = tabNewPoint[i] spline.SetPoint(i,point) spline.Message(c4d.MSG_UPDATE) return spline
  • Loading in a framesequence to the pictureviewer (EXRs)

    python
    5
    0 Votes
    5 Posts
    1k Views
    G
    Loud and clear! Thankyou!
  • Setting Noise as the Shader in a Displacer

    python 2023
    4
    0 Votes
    4 Posts
    1k Views
    P
    Ok, I understand it now better, thanks.