plugin
Cinema4DLoader
Bases: LoaderPlugin
Source code in client/ayon_cinema4d/api/plugin.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
|
remove(container)
Remove all sub containers
Source code in client/ayon_cinema4d/api/plugin.py
206 207 208 209 210 211 212 |
|
Cinema4DSingleObjLoader
Bases: Cinema4DLoader
, ABC
Base Loader plug-in that manages a single Cinema4D object with a filepath parameter.
Instead of containerizing on a hidden selection object this imprints the node itself as a container.
Source code in client/ayon_cinema4d/api/plugin.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
|
remove(container)
Remove all sub containers
Source code in client/ayon_cinema4d/api/plugin.py
298 299 300 301 302 |
|
set_obj_for_context(obj, context, is_update=False)
Update the object for the new context. This will be called on load and update to configure the object for the new context, like setting the filepath.
This can be inherited on child classes to do additional things on load or update.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
obj | BaseObject | The managed object. | required |
context | dict[str, Any] | The full representation context. | required |
is_update | bool | Whether this is part of an | False |
Source code in client/ayon_cinema4d/api/plugin.py
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
|
cache_instance_data(shared_data)
Cache instances for Creators shared data.
Create cinema4d_cached_instances
key when needed in shared data and fill it with all collected instances from the scene under its respective creator identifiers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
shared_data(Dict[str, | Any] | Shared data. | required |
Source code in client/ayon_cinema4d/api/plugin.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|