Include same container multiple times in .res
-
Hello coders.
I'd like to include the
Oprimitiveaxis
container multiple times in the .res file of myObjectData
plugin where the first inclusion should be called the same as the default Orientation while the second inclusion should be called something else like Alternative Orientation. To access both values in my plugin code they of course need separate IDs as well.For the first inlcusion I can simply do this in the .res file:
CONTAINER omyobject { NAME Omyobject; INCLUDE Obase; INCLUDE Oprimitiveaxis; }
and access it via:
orientation = op[c4d.PRIM_AXIS]
What would I need to do to include this a second and possibly even more times? Is this even possible? In my head I'd have to define an alternative name and ID right with the
INCLUDE
statement. Or do I simply have copy and paste theCYCLE
myself?Best regards,
Daniel -
Hi Daniel,
You cannot include multiple containers and keep their IDs different. There's no special arguments for the INCLUDE statement that can optimize this workflow for you.
In your case having your own implementation of CYCLE would be the solution you're looking for.
Cheers,
Ilia