• Pointcount from bevel deformer

    Moved python
    5
    0 Votes
    5 Posts
    1k Views
    B
    Sorry
  • Having issues with LoadDll and c4d_main

    c++ r20
    5
    0 Votes
    5 Posts
    1k Views
    V
    In our case it was a bit more complex but we managed to bypass the issue using load delay dlls. Thank you all!
  • Sample a shader in 3D space in GVO

    c++ windows macos r19 sdk classic api
    3
    0 Votes
    3 Posts
    1k Views
    codysorgenfreyC
    Thanks @r_gigante that's what I thought.
  • Which message do I receive when a command plugin dialog is closed?

    python r19
    4
    0 Votes
    4 Posts
    1k Views
    P
    @s_bach said in Which message do I receive when a command plugin dialog is closed?: DestroyWindow Thanks. By the way, compliments on the latest R20 C++ manual. It is great!
  • Miscellaneous questions about "BaseContainer","DescID" etc

    3
    1
    0 Votes
    3 Posts
    1k Views
    eZioPanE
    @s_bach, thank you, I'll start to do some hard reading!
  • Print console logs in terminal

    Moved python r20
    5
    0 Votes
    5 Posts
    2k Views
    Y
    Hi, As I turned this discussion into a Q&A topic, if you're satisfied with my last post's solution then you can mark it as the correct answer or mark the topic as solved. For more information see Q&A New Functionality.
  • debugging question

    c++ r20
    15
    0 Votes
    15 Posts
    4k Views
    a_blockA
    @ello said in debugging question: when i hover for example RNDOFFSET in visual studio i get enum <unnamed>::RNDOFFSET = 1029 does this unnamed part cause something? No, it doesn't cause anything. It just means the symbol is defined in an unnamed enum. We avoid such nowadays (improved error checking, easier to debug), but they don't do any harm. furthermore, since this is a plugin collection the name RNDOFFSET is indeed used with another id in another plugin. does this play a role? i thought that only included files are taken into account? Well, I doubt so, but it may. The point is using unique IDs per BaseContainer. And to access a certain ID always with the same type (you could change the type, but let's leave this aside for now). So for a single BaseContainer Is try to make sure and check, that one ID (I mean the symbol or name like RNDOFFSET) is always accessed with the same type, and that no two symbols have identical ID values, so you do not access the same BaseContainer entry with two different names (lets say RNDOFFSET_INT and RNDOFFSET_VEC) but maybe different types. here is a screenshot for the actual issue From briefly looking at the screenshot on my mobile, it does not give me an additional clue. I recommend to add the debugger console to your layout. Usually we print some extra info there, when we run into a Critical Stop. Bye, Andreas
  • resource errors with SPLINE in R20

    python r20
    4
    1
    0 Votes
    4 Posts
    1k Views
    Y
    Hi, Are you using the Spline GUI inside a dialog? It looks like so if there's no arrow. If that's the case you can call SetLayoutMode(c4d.LAYOUTMODE_MINIMIZED) on the Spline custom GUI to change its layout to the minimized/spline element only.
  • Deforming custom user data

    c++ r20
    5
    2
    0 Votes
    5 Posts
    1k Views
    r_giganteR
    Hi Roger, I'm jumping into this discussion simply because Andreas is busy at the moment. point 3: it's actually not possible to turn a polygon cache in a spline... you can only consider, but it's rather a hack more than an orthodox approach to use the caches points to create the line object which you would expect from a spline cache, but take it as "thinking loud". point 4: no chance to preserve the cache of a spline as a spline... it's like asking can i preserve the cache of a sphere as a sphere? Actually cache are meant to be the lowest-order geometry to be processed by the displaying pipeline. So surfaces gets tesselleted in points and triangles and mathematical curves in line segments. point 5: I don't get the point here, sorry: you said you used GetAndCheckHierarchyClone() so which objects are you referring you added in the dependency list? Best, Riccardo
  • Example Python Code "Add a Custom User Data": Not Working

    python
    4
    0 Votes
    4 Posts
    2k Views
    B
    @eziopan Thanks mate. It works as expected. @a_block Thanks. Will double check next time.
  • Scaling of image not working

    4
    0 Votes
    4 Posts
    1k Views
    a_blockA
    Hi, I'm glad this already got solved. I just wanted to mention, I have added code tags to the initial post. Cheers, Andreas
  • How do priorities work when all objects/tags have the same priority?

    2
    0 Votes
    2 Posts
    879 Views
    M
    Hi @cmpxchh8b, No worries at all since it's one of your first posts, but please make sure to read and apply the rules defined on the following topics: How to Post Questions. (Add proper tags in your case) Q&A Functionality. Regarding your question, if an object gets the same priority it's from top to bottom. Then you can find valuable information about priority in the c4d help With the given example you mentioned in the post here is the execution order after some internal test. (First one is executed before the last one) Skin.1 (Called to some kind of prepass) Skin.2 Called to some kind of prepass) Polygon.1 Skin.1 Circle (ObjectData which return a Spline, Called to some kind of prepass) Circle (ObjectData which return a Spline, Called to return the cache) Null.1 Null.2 Null.3 Polygon.2 Skin.2 XPresso.1 XPresso.2 XPresso.3 Note that any ObjectData can be executed multiple time since you can call AddToExecution which allow you to add the current node at any time within the execution pipline. This is basically used to do some kind of prepass and postpass. Hope it's answers to your question. Cheers, Maxime.
  • deformer object priority

    3
    0 Votes
    3 Posts
    2k Views
    M
    Thank you for your answer!@m_adam Although object go back normal after i clicked 'Redraw' (I guess that's the reason),it isn't make sure problem is 'refresh the viewport'. 'refresh the viewport' can also fix Priority error result . 'Shift Priority Tag' just effective Expression.It can't help. After asking questions,i try to use Python Tag to replace 'Spline Deformer Object' ,because Python Tag have Priority.Fortunately,even though it looks very complicated, but everything become ok!
  • Drag and drop in GeUserArea

    c++ windows r19
    6
    0 Votes
    6 Posts
    1k Views
    C4DSC
    @a_block Thanks for the update. Much appreciated!
  • Coding a Python Field

    Moved
    5
    0 Votes
    5 Posts
    1k Views
    M
    Hey @darrellp as you figured out, it was not on the correct category. But in any case don't worry, maybe I was too harsh and unprecise, I'm sorry about that but in the end, as I said, you are new here, so don't worry if you break the posting rules the first times
  • Underlying of "doc" and "op" ?

    8
    0 Votes
    8 Posts
    2k Views
    eZioPanE
    @c4ds, don’t worry! Every steps (even the off-road one) make some progress, right? I appreciate the way you focusing on the problem solving, which I believe is also the wonderful thing of this forum: we do our best to solving the problem itself, discussing about the better/more accurate answers rather than “who is right, who is wrong”. Last but not least, thank you for taking time to reply!
  • Creating a Circle (spline) with varying number of points.

    python r20
    5
    0 Votes
    5 Posts
    3k Views
    P
    Thank you all, great answers! I will take a different approach. I convert the circle to a spline and then divide that spline into the wanted number of points. -Pim
  • Coding a Python Plugin for fields

    python r20 windows
    4
    0 Votes
    4 Posts
    1k Views
    D
    @s_bach I was beginning to wonder if I was beating my head against a brick wall. Apparently so. Thanks so much for alleviating the pain! Well, I learned quite a bit about Python in the process so not really a loss. Guess I'll try moving on directly to the C++ version.
  • read active render data

    python
    2
    0 Votes
    2 Posts
    636 Views
    S
    Hello and welcome, when creating a new post, please use tags and the Q&A system. See Read Before Posting. I tried your code in a R20 script and it seems to work perfectly fine: rd = doc.GetActiveRenderData() if rd is None: return fromSlice = rd[c4d.RDATA_FRAMEFROM] toSlice = rd[c4d.RDATA_FRAMETO] fps = doc.GetFps() print(fromSlice.GetFrame(fps)) print(toSlice.GetFrame(fps) What exactly is not working for you? In what context do you execute your code? best wishes, Sebastian
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    14 Views
    No one has replied