Jump to content

delizade

Limited Member
  • Posts

    49
  • Joined

  • Last visited

Community Answers

  1. delizade's post in How to control GRADIENT_GRADCTRL? was marked as the answer   
    I've found out like below:
     
    shd=c4d.BaseShader(ID_OCTANE_GRADIENT_TEXTURE) mat.InsertShader(shd) # change Gradient node's gradient values grad=c4d.Gradient() grad.InsertKnot(col = c4d.Vector(0.95, 0.95, 0.95), pos = 0.0) grad.InsertKnot(col = c4d.Vector(1.0, 1.0, 1.0), pos = 1.0) shd[c4d.GRADIENT_GRADCTRL]=grad # mat[c4d.OCT_MATERIAL_DIFFUSE_LINK]=shd  
  2. delizade's post in How to get all takes with sub takes as an array list? was marked as the answer   
    #I’ve solved this. here is the function: takeList = [] def getSubStructure(take,arr): child=take.GetDown() while child: arr.append([]) arr[len(arr)-1].append(child) if child.GetDown(): getSubStructure(child,arr[len(arr)-1]) child = child.GetNext() takeData = doc.GetTakeData() mainTake = takeData.GetMainTake() getSubStructure(mainTake,takeList)  
  3. delizade's post in A problem about getting an object width value with python was marked as the answer   
    a suggestion was made by
    @a_block on plugincafe.MAXON forum. He suggested that I should use 2 tags for this. first one is setting instance link and other one getting width value and use it. It worked.
    1. tag should be generator -1
    2. tag should be generator 0
×
×
  • Create New...

Copyright Core 4D © 2024 Powered by Invision Community