Direct access of Userdata

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 04:54, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   11 
Platform:      Mac OSX  ; 
Language(s) :   C.O.F.F.E.E  ;

---------
another check.
I can read default parameters from tags "directly" as the code below.
(Using the PhongTag with an added Userdata)
Trying to do the same thing with a Userdata parameter gives a
"parameter access failed" msg.

Cheers
Lennart

> \> main(doc,op) \> { \> var phongangle = op#804:5612:1002;// <- works \> var myuserdata = op#804:5612:700:1;// <- doesn't work \> } \>

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 04:59, xxxxxxxx wrote:

I experienced the same thing. Userdata access in coffee seems somehow limited. Also I noticed that User Data things that work in the Editor often don't work in NETrender.

That was one of the reasons why I switched to C++ some years ago ;-)

Cheers,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 05:13, xxxxxxxx wrote:

Jack,yes, it is somewhat limited, but I must say it is rocksolid for what it does.
What NET issues do you have? I run my expressions with loads of
userdata settings on large renderfarms and haven't encountered any problems.
(Including noise and time dependent memories etc.)

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 06:30, xxxxxxxx wrote:

My NET issues were "parameter access failed" for each and every parameter I used to access in the editor (and when rendering in the picture viewer).

By the way, you can significantly reduce effort and increase your possibilities if you try Sebastian Rath's very cool Python->C4D integration "Py4D". Give it a try it's almost as mighty as the C++ API, but easy as Coffee. And since Sebastian integrated a SourceProtector with strong encryption into the latest version, you can still keep your code secret.

It's worth a try, and Py4D is still free.

Py4D Website

Cheers,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 06:50, xxxxxxxx wrote:

That's odd...you can post a simple problem expression if you like
and we'll check.

Yup,the python thing is under the radar..

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 19/05/2009 at 07:02, xxxxxxxx wrote:

Of course, you can check the older - Coffee Based - version of the TrainDriver Expression:
http://wiki.c4d-jack.de/wiki/TrainDriver#Download

That one worked fine in Editor & Picture Viewer, but not in NETrender.

Anyway, after I rewrote it for C++ all those problems were gone:
http://wiki.c4d-jack.de/wiki/TrainDriver_Plugin

Cheers,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 24/05/2009 at 14:54, xxxxxxxx wrote:

Had the chance to look at the train set up now.
The way it is set in the xpresso tag (the nodes)
it lose reference to the tag over net.
I've linked a working file for net using linkfields straight
to the coffee node. I haven't changed the coffee
node code ,so the coffee works as is.

xpressotrainNET

As for the original question, is there any info on that?
(See first post)

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 24/05/2009 at 15:55, xxxxxxxx wrote:

Ah, nice to know, thanks!
And interesting to see the solution.

Can I upload that to the Wiki page?

Cheers,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 24/05/2009 at 16:02, xxxxxxxx wrote:

Yes of coarse.

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/05/2009 at 03:50, xxxxxxxx wrote:

Call me ignorant but how did you figure out that op#804:5612:1002 gives you the Phong tag's angle?

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/05/2009 at 05:53, xxxxxxxx wrote:

From the AM :) Have the object selected and the tags are
included as tabs in the AM.
Dragging from there, instead from the tag itself, into
the CommandLine gives that.

Cheers
Lennart

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/05/2009 at 06:32, xxxxxxxx wrote:

Smart, man :)

Cheers,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/05/2009 at 08:01, xxxxxxxx wrote:

Smart indeed. I have to check with developers if this is save to use though. The user data stuff could be a bug.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 26/05/2009 at 09:12, xxxxxxxx wrote:

Yes, that would be very good to know ! :)

Thanks
Lennart