Jump to content

megamu

Regular Member
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Noble Beginner

Profile Information

  • First Name
    ryce

Cinema 4D Information

  • C4D Version
    R18 Studio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. is there any way to use spline, to model in 3d, using some three-dimensional grid as helper? I tried to use planar workspace but it doesn't work, I would need a grid that marks all the points of the space to use spline in a three-dimensional way, the front and side views don't work for me because it always ends up overlapping segments.
  2. When you program in Python the actions that will occur. How do you animate them in the timeline? I thought for example to make a user data with checkbox assigned to if blocks with events inside that are activated/deactivated according to ones choose in the timeline What ways do you use? sequencing (like in ableton)? finite state machines?
  3. Great, i will look for dynamic programming. Another thing I had trouble with was accessing the blending properties of a layer in a texture within python. I had to pass the values from python to the gradients through user data variables and connect them with xpresso.
  4. Hi, i'm new to c4d and 3d in general. I started learning xpresso nodes and python. I'm recreating this video with shaders and cloners, using xpresso nodes I created inside a python lfo (could have used the formula node) and connected it to the parameters of number of clones, shaders fallof linear position , strength, shader gradient, etc. When I wanted to replace several xpresso nodes with a python script (creating my own rangemapper function, real2vector) connected to my other lfo script, the animation got quite slow, giving very slow render times. My questions are: what are the ways to optimize python performance? does c4d have optimized python functions like xpresso? is running python inside an xpresso node very expensive? what is the least expensive way to run python scripts? Does this way of using the script run in every frame? I like xpresso but python is much easier for me to code. I'm using c4d r19. Is the runtime of python improved in the new versions? I'm redoing all, using only a null object with a python tag and api functions, i think this is going well. Is just a little bit slower than xpresso, but python is easier for me. import c4d import math #Welcome to the world of Python def lfo(cframe, frecuencia, amplitud=1): return 1-(((math.sin(cframe*frecuencia)*amplitud)+1)*0.5) def main(): #User Data obj = op.GetObject() UC = obj.GetUserDataContainer() frecuencia= obj[c4d.ID_USERDATA,2] amplitud= 50 #Current Frame cFrame = doc.GetTime().GetFrame(doc.GetFps()) #Objetos cloner = doc.SearchObject('Cloner') shader = doc.SearchObject('Shader') cube = doc.SearchObject('Cubito') random = doc.SearchObject('Random') #Oscilador osc = lfo(cFrame, frecuencia) #print osc #Move between -600,600 Shader shader[c4d.ID_BASEOBJECT_REL_POSITION,c4d.VECTOR_X]= c4d.utils.RangeMap(osc,0,1,-600,600,False) #Shader Strength shader[c4d.ID_MG_BASEEFFECTOR_STRENGTH]= osc #Random Strength random[c4d.ID_MG_BASEEFFECTOR_STRENGTH]=osc #Cloner Count cloner[c4d.MG_GRID_RESOLUTION]= c4d.Vector(1+osc*50,1,1+osc*50)
×
×
  • Create New...

IMPORTANT INFO:

We are in the progress of finalising upgrade to Cafe 3.0. If you are experiencing issues, please change the default theme to Cafe 2.5 and thing’s should work again. We will notify everyone when we resolve all the issues.
 

It would be also great if you could report any issue you might have on your side so we can fix them. :cowboypistol: