Jump to content

rsths

Limited Member
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • First Name
    R.J.
  • Last Name
    Sindelar

rsths's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Thanks you for the lesson and for porting that over. I really do appreciate it!
  2. Thanks so much for your help! It seems to work so far, but I am getting a yellow bar across the python node and the downstream node. Does this indicate an error? The code compiles fine. I was adding it like this (I also attached the c4d project file): import c4d from c4d import utils #Welcome to the world of Python def main(): global Output1 if not SplineObj: return blah = utils.SplineLengthData() # blah = dummy var blah.Init(SplineObj) # name of spline Output1 = blah.GetLength() blah.Free() I really really appreciate the help. This little tool is perfect for what I need to do. arrowTool._v3.c4d
  3. Hi Everyone, I am trying to make an animation for my schoolwork that contains a decent amount of arrows. I found ArrowTool online which seems like it would be a big help. However, I have R20 and the Coffee nodes are no longer supported. Here the two nodes that I think need to be switched to Python. SCRIPT 2 main() { // start if(pos == 4) { Output1 = 0; Output2 = 0.5 + twist; Output3 = 1; Output4 = 0.5; } // end if(pos == 5) { Output1 = 0; Output2 = 0.5; Output3 = 1; Output4 = 0.5 + twist; } } SCRIPT 2 main() { // Get Spline Length var PathLength = 0.0; if (SplineObj) { var sld = new(SplineLengthData); sld->Init(SplineObj,0); PathLength = sld->GetLength(); sld->Free(); } Output1 = PathLength; } I have also attached the file if that would help someone figure it out. I have limited Python experience, so any help is appreciated! Thanks! arrowTool.c4d
  4. Hi Everyone, I am new to Cinema 4D in the last few months, so my apologies as I believe this is a relatively simple problem. I am a graduate film student working on my thesis project, and I have created an elevation model of a research watershed. It is currently a polygon object in Cinema 4D. What I would like to do is have shapes (cylinders) rise up from the elevation model to a height that corresponds to the amount of carbon in the soil at that particular point. I would also like a MoText object to display the amount of carbon above the corresponding cylinder. The following code, which I cobbled together from online tutorials, does a lot of what I need. It successfully creates the cylinders and the necessary text in the proper locations in Cinema 4D. However, I am struggling with the following issues. 1. How to center the MoText over the corresponding cylinder. 2. How to shift the Y-axis of the cylinders to the bottom of each object. That way when I use a clamp constraint on the cylinders, the bottom will be stuck to the surface of my elevation model. Right now when I do it, the center sticks to surface. 3. How to clamp the cylinders to the surface of my elevation model and animate their height to go from zero to my specified value (I know this step can be done without Python, so this is simply a nice bonus if it is easy to program) While I could program all this manually, I will be doing more of this in the future, and I know Cinema has the capability to do it with Xpresso/Python. Unfortunately, I haven’t done much programming since high school. I have been watching tutorials on Python/Xpresso, but it is a bit overwhelming with all the different options. I learn best from examples, so if someone can get my started with the right syntax and commands for some of these issues - I would sure appreciate it. Thank you for any insights you can provide SIC_Content_v2.txt
×
×
  • Create New...

Copyright Core 4D © 2023 Powered by Invision Community