• Redshift deleting using old information

    Moved
    17
    0 Votes
    17 Posts
    3k Views
    ManuelM
    hi, your question is sometimes not obvious Even with the scene it's a bit compicated. What i can say about your code is that you should be more defensive in your code. Always check the value before continue. For example what if the object is not found ? You should continue to the next item or stop ? for item in spline_UD: rs_mat = doc.SearchObject ("S" + str (item) + " Gas") if rs_mat is None: # Because we don't have object to continue, we iterate to the next item. continue ... Cheers, Manuel
  • Changing Display Filter Does Not Work When Rendering?

    r21 python
    4
    0 Votes
    4 Posts
    462 Views
    ManuelM
    Hello, thanks for the answer by the way you could also clone the renderdata, modify the clone and send it to as a parameter to the function RenderDocument. That way, you don't have to "restore" them. Just in case, don't forget that data may not be saved in the BaseContainer. Cheers, Manuel
  • Unnecessary Executions Under BFM_INPUT_VALUE

    r21 python
    5
    0 Votes
    5 Posts
    560 Views
    B
    @zipit Thanks for the confirmation!
  • PolygonObject.SetSelectEdges() and the Neighbor() class, a giant dilemma

    6
    0 Votes
    6 Posts
    1k Views
    M
    @m_adam said in PolygonObject.SetSelectEdges() and the Neighbor() class, a giant dilemma: ... Hope it answers your questions, Cheers, Maxime Thank you Maxime, this is a lot of useful info. Let me think through all of this and reply here if I have any further issues.
  • First Time calling SetAction does show the Brush tool's AM

    r20 r21 c++
    16
    0 Votes
    16 Posts
    2k Views
    C4DSC
    @m_adam said in First Time calling SetAction does show the Brush tool's AM: And I did test only on R21 so be sure to check again because I wasn't able to reproduce as you said with default layout in R21. Cheers, Maxime. I am using R21.207 and with default layout see the brush tool in the AM (identical to what happens with R20.059). For safety, I have now tested your solution on R21 and works as expected.
  • Custom data+gui access with GetParameter()

    c++ r21 r20 r19
    6
    0 Votes
    6 Posts
    1k Views
    rsodreR
    @m_magalhaes No hurry, for now there's just one place where I need this, I get it using the BaseContainer. But I will probably use it more often, so if the DOTS example is updated I can replicate the solution to my own type and remove this workaround. Thanks!
  • Avoiding invalidating saved scenes when implementing Read/Write

    c++ sdk
    18
    0 Votes
    18 Posts
    2k Views
    ManuelM
    hi, back to the subject, i was tracking the bug and I discovered it was on my chair. After messing around too much about the code, I was doing something very wrong. when you register your scenehook what is the level ? (last parameter of RegisterSceneHookPlugin) Cheers, Manuel
  • GetWidth() for GeDialog?

    r21 python
    4
    0 Votes
    4 Posts
    402 Views
    B
    Hi @m_adam . Apologies for bringing up the thread again. I just have a follow up question. The def Message works well for the consecutive duration of the dialog. But for the initial life (i.e on startup), the def Message will not be executed . Is there a way to determine the width and height of the dialog upon its startup?
  • SetActiveRenderData Does Not Work As Expected?

    r21 python
    3
    0 Votes
    3 Posts
    392 Views
    B
    @PluginStudent Thanks for the explanation. Your solution works as expected
  • Global Variable doesn't work on CoreMessage?

    r21 python
    7
    0 Votes
    7 Posts
    985 Views
    M
    @bentraje I don't have that much to add on your topic since I think @zipit already explained everything nicely. In any case some good resource for you about how global variable works in Python Global keyword in Python and Mutable vs Immutable Objects in Python. Regarding your last question, I think you should open a new topic, but the short answer there is no way to pass directly a variable with a MessageData, the best way is to use a scope accessible by both part and store this variable in this shared scope (can be global or any other). Cheers, Maxime.
  • 0 Votes
    4 Posts
    916 Views
    M
    Hi @daniell welcome on the plugincafe forum, Don't worry since it's your first post, I've set up it correctly but please for the next one, make sure to read and apply the next rules: Q&A New Functionality. How to Post Questions especially tagging. Finally, regarding your issue, you may find relevant the NodeData::GetDParameter() Manual and NodeData::SetDParameter() Manual. Cheers, Maxime.
  • Content Browser Like Navigation?

    r21 python
    3
    0 Votes
    3 Posts
    576 Views
    B
    @r_gigante Thanks for the reference. For anyone trying to achieve the same, here is a sample file. https://www.dropbox.com/sh/z1lzyphp8qnt9kw/AAB2P5gNo16IHafgc6xPEsy4a?dl=0 Thanks again for @zipit for the help.
  • XPresso: Modify UserData

    8
    0 Votes
    8 Posts
    1k Views
    Passion3DP
    @zipit work fine thanks a lot
  • Treeview Creates An Extra Column?

    r21 python
    3
    0 Votes
    3 Posts
    376 Views
    B
    @m_adam Thanks! Works as expected
  • XPresso python node

    3
    0 Votes
    3 Posts
    652 Views
    Passion3DP
    Thanks @PluginStudent
  • Copy Material with Current State to Object

    Moved python
    5
    0 Votes
    5 Posts
    864 Views
    SwinnS
    Got it. Thanks, again, zipit for you answer.
  • Isoparm in Deformer plugin

    r20 c++ r21
    12
    1 Votes
    12 Posts
    2k Views
    Danchyg1337D
    @r_gigante Thanks for your reply! You were absolutely right about checking input type. When i did a simple type check everything started to work as it should!
  • delete Redshift node

    3
    1
    0 Votes
    3 Posts
    858 Views
    SwinnS
    Cool! Thanks.
  • 0 Votes
    5 Posts
    1k Views
    ferdinandF
    Hi, thanks, that answers all my questions. Cheers, zipit
  • Renderqueue Layout/Dialog Questions

    5
    1
    0 Votes
    5 Posts
    841 Views
    M
    I'm sorry for the huge delay asked for this question, but it appears, that this dialog layout is hardcoded in the default Cinema 4D layout, so when you open it this dialog, it loads this layout by default since it's saved in the default Cinema 4D layout. Unfortunately, there is no way to do the same thing with code but you can split your GUI in 2 parts and let the user build its own layout with all the Command and your Dialog bellow. Cheers, Maxime.