@m_adam Great info. Thanks Maxime!
Posts made by noseman
RE: Tag GetInfo() help
So, I did a bit more research after searching broader in the forum and here's a script that prints out the GetInfo() about the tag:
import c4d def main(): tags = op.GetTags() for tag in tags: if not tag: continue print tag if tag.GetInfo() & c4d.TAG_VISIBLE: print "visible" if tag.GetInfo() & c4d.TAG_HIERARCHICAL: print "hierarchical" if tag.GetInfo() & c4d.TAG_EXPRESSION: print "expression" if tag.GetInfo() & c4d.TAG_TEMPORARY: print "temporary" if tag.GetInfo() & c4d.TAG_MODIFYOBJECT: print "modifyObject" if tag.GetInfo() & c4d.TAG_ADDTOTAKEGROUP: print "add to take group" c4d.EventAdd() if __name__=='__main__': main()
Tag GetInfo() help
A common friend was looking into a way to copy tags from one object to another using Python,
It appears that we have invisible tags, tags that can't have more than one of the same type e.t.c.
As far as I was told, we can use GetInfo() to get some of this information from the tag. The problem is that searching for "GetInfo()" won't return a result in either the Python or C++ documentation, and I can't find a list of what the info returns.
Is there somewhere I can look?
Multi threading in Python - Parallelization
I have read some very old posts about multi threading in python, and I can't understand squat.
Would it be possible for someone to post a simple example on how to write a script that is multithreaded and does the following:
- Get the number of Virtual cores in my system "x" (I have a 12 core Mac pro with 24 threads)
- make a List with 100 numbers [1,2,3,4.... 100]
- Divide that list into "x" segments
- Send each of the segments to each of my cores (threads)
- Each thread multiplies each item of the segment by 2 (just to do something)
- When all threads are done, assemble a new list with the result of all segments in the correct order.
Is that even possible?