Thanks @ferdinand yeah that all makes sense. Just wanted to make sure I had provided a clearer explanation of what I was trying to do. Thanks again!
Latest posts made by Z.Prich
-
RE: Calling an existing user data preset onto a python tag.
-
RE: Calling an existing user data preset onto a python tag.
Also, @ferdinand - this video might describe exactly what I'm looking for better.
https://www.loom.com/share/f2ee91fac416435982a9a31af428b21a
I realize I potentially didn't clarify what I meant when I said preset in reference to your definitions - so maybe that clears it up!
-
RE: Calling an existing user data preset onto a python tag.
Holy moly - fantastic post. Thanks for the effort! (and sorry about the incorrect tags, I'll definitely lurk a bit more and get the lay of the land ha).
I'm going to try to ingest this over the week and see what I can make this weekend. Thanks again!
-
Calling an existing user data preset onto a python tag.
Hey folks! Zach here - new to this community as well as Python scripting in general.
I was trying to help someone out with an issue and it's a bit beyond me. But has basically spurred me to finally get into some Python scripting (once I get past this ha).
Ok so here's the situation, this friend is using a script - a spline to nulls script - that is contained within a Python tag in C4D. Said Tag also has some custom user data on it that the Python references. Thus this means that, as far as we can tell, that in order to use this script, you have to import the .c4d file (which is how the plugin came to him) and then just ctrl drag the tag onto a new spline.
But we'd like to have this script contained as a single executable user script.
So, if I'm thinking correctly, we need to find a way to load this user data onto the tag, then execute the main portion of the script.
I went into the original c4d plugin file and copied the necessary User Data into it's own preset.
So, my specific question is - is there a way to call a User Data preset into existences before executing the second half of the script? It feels like that way we'd be able to get the whole thing into a self contained user script instead of this current workflow.
I've seen the documentation on how to create user data within Python, but not how to just load an existing user data preset.
And of course I know there are other ways to accomplish the spline to nulls idea, but I'm just using this as a problem solving exercise.
Thanks!